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:
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);