static CacheAttribute() { // Use AspectServiceLocator to initialize the cache service field at application run-time. if (!PostSharpEnvironment.IsPostSharpRunning) { cache = AspectServiceLocator.GetService <IMemoryCache>(); } }
static CacheAttribute() { // Use AspectServiceLocator to initialize the cache service field at application run-time. if (!PostSharpEnvironment.IsPostSharpRunning) { cache = AspectServiceLocator.GetService <IMemoryCache>(); } }