I have an object that has relatively high initialization cost that provides a thread-safe calculation method needed to process web service requests.
I'm looking for the best way to keep an initialized instance available between requests.
One method is to declare it as a static variable. It would then remain available until the AppDomain is recycled.
This is an older web service that does not use WCF, but converting is an option if that would provide a better solution.
Is there a better approach?