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

AllowResponseInBrowserHistory() public method

public AllowResponseInBrowserHistory ( bool allow ) : CachePolicy
allow bool
return CachePolicy
        public CachePolicy AllowResponseInBrowserHistory(bool allow)
        {
            _allowResponseInBrowserHistory = allow;
            _hasPolicy = true;

            return this;
        }

Usage Example

Exemplo n.º 1
0
			public void SetUp()
			{
				_httpCachePolicyBase = MockRepository.GenerateMock<HttpCachePolicyBase>();

				_cachePolicy = new CachePolicy();
				_cachePolicy.AllowResponseInBrowserHistory(true);
				_cachePolicy.ETag("etag");
				_cachePolicy.NoStore();
				_cachePolicy.NoTransforms();
				_cachePolicy.OmitVaryStar(true);
				_cachePolicy.ProxyMaxAge(TimeSpan.FromHours(1));
				_cachePolicy.Revalidation(HttpCacheRevalidation.AllCaches);
			}
All Usage Examples Of Junior.Route.Routing.Caching.CachePolicy::AllowResponseInBrowserHistory