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

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