Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Best Way to Run Separate Worker Thread?

$
0
0
Hi Martin

For scheduled task we internally use WFF workflows, but it isn't the best way to do things, also because the old WWF api is obsolete in .NET 4.5.
I know that @burningice was looking intro creating some kind of configurable sheduled tasks, not sure what he ended up with.

If you write your own code, you can always check if the ASP.NET website is being recycled by calling:
using Composite.Core.Extensions;

if (HostingEnvironment.ApplicationHost.ShutdownInitiated())
{ 
  // stop doing stuff..
}
You also can subscribe to the shutdown event, which should happen each time C1 is stopped/recycled:
Composite.C1Console.EventsGlobalEventSystemFacade.SubscribeToShutDownEvent(OnShutDownEvent);

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>