Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
How do you tell if you are running code on Umbraco as a Service.
Specifically I want to stop uSync from running on UaaS - as I suspect that would not be ideal.
is there something like is ApplicationContext.Current.IsConfigured but IsUaaS ? ??
ApplicationContext.Current.IsConfigured
Kevin
That would not be ideal indeed ;-)
We always inject an extra dll into each UaaS site which is called Concorde.Messaging.Web.
Concorde.Messaging.Web
You can check for it like so:
var onUaaS= AppDomain.CurrentDomain.GetAssemblies() .Any(a => a.FullName.StartsWith("Concorde.Messaging.Web"));
I would make sure that you log something when you detect this dll so that people have a chance to find out why uSync isn't working.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Detecting if you are running on Umbraco as a Service
Hello,
How do you tell if you are running code on Umbraco as a Service.
Specifically I want to stop uSync from running on UaaS - as I suspect that would not be ideal.
is there something like is
ApplicationContext.Current.IsConfigured
but IsUaaS ? ??Kevin
That would not be ideal indeed ;-)
We always inject an extra dll into each UaaS site which is called
Concorde.Messaging.Web
.You can check for it like so:
I would make sure that you log something when you detect this dll so that people have a chance to find out why uSync isn't working.
is working on a reply...