Junior.Route.Routing.Caching.CachePolicy.Reset C# (CSharp) Method

Reset() public method

public Reset ( ) : CachePolicy
return CachePolicy
        public CachePolicy Reset()
        {
            _allowResponseInBrowserHistory = null;
            _cacheability = null;
            _eTag = null;
            _clientCacheExpirationUtcTimestamp = null;
            _hasPolicy = false;
            _ignoreClientCacheControl = null;
            _clientCacheMaxAge = null;
            _noStore = null;
            _noTransforms = null;
            _omitVaryStar = null;
            _proxyMaxAge = null;
            _revalidation = null;
            _allowsServerCaching = null;

            return this;
        }

Usage Example

Exemplo n.º 1
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.ServerCaching(DateTime.UtcNow);
				_cachePolicy.Reset();
			}