Click here to Skip to main content
15,903,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good morning all
I was just wondering if the following would work or even more interesting if it would make sense.
I created a wrapper around the Microsoft MemoryCache in order to store MS CRM objects and Linq objects. SO far so good. It works, is stable and suits my needs.
It runs on IIS serving a WCF service so the caching actually does work.
So far so good.

Now i started to think about some kind of lookup implementation that would periodically check for changes on frequently updated entities and a initialize routine that pulls in the most often required objects.

Would it be generally possible for a static class that runs on the IIS to perform background operations itself? Calling a StartUp() method and then start some kind of task that overlooks the objects and updates them...
So the static class would be like "alive" and does stuff... (scientifically spoken).

It's actually more a theoretical questions because I do not think that we would find the time to actually implement something like this.

Any inspiration is very much appreciated,

have a good day all of you and best regards
Andy
Posted
Comments
F-ES Sitecore 30-Oct-15 4:26am    
You could start a method running on a new thread and have that method do a "do work\sleep\wake" loop. You'd need to think about "controlling" the thread though, ie being able to terminate it gracefully so it doesn't loop forever.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900