Esempio n. 1
0
 public static IDisposable SetScope(CacheMethod method, DateTimeOffset minimumValueTimestamp)
 {
     return(ScopedContext <CacheDirectives> .CreateNewScope(new CacheDirectives(method, minimumValueTimestamp)));
 }
Esempio n. 2
0
        public static IDisposable SetScope(CacheDirectives cacheDirectives)
        {
            var scopeContext = new CacheDirectives(cacheDirectives.Method, cacheDirectives.MinimumValueTimestamp);

            return(ScopedContext <CacheDirectives> .CreateNewScope(scopeContext));
        }