IIS is hosted WCF service and want to return the existing data in the IIS cache (HTTPTEXTT)
.ca) What should be the most appropriate option of this type?
If I were you, then I can not believe the fact that the service was hosted in IIS. is. What if you want to host your WCF service with any other technology? I think you should see what a more common caching solution is, and it works fine with .net.
However, if you really want to use IIS cache, then use System.Web HttpContext.Current.Cache instead of HttpContext as HttpRuntime.Cache Not always available.
In addition, in the form of cruise , the actual type of your items is completely irrelevant unless they are serializable (i.e., classes [serializable ( )] Are decorated with attributes IIS cache does not require a serializable object, but WCF does.
Comments
Post a Comment