I use System.Runtime.Caching.MemoryCache to simulate a recurring task in a running .NET MVC application deployed to AppHarbor.
Entries in the cache are added using CacheItemPolicy, which contains the offset AbsoluteExpiration and RemovedCallback, which calls the method and repeats adding the item to the cache (as described here )
MemoryCache is logged for the first time in Application_Start. It works fine locally, but doesn't seem to work after deployment in AppHarbor (also used with HttpRuntime.Cache, same result).
My application runs under the CANOE (free) account in AppHarbor, which has only one worker. Does this mean that I can not simulate a background task until I switch to some kind of paid plan?
Thanks!
source share