Revalidation() public method

public Revalidation ( HttpCacheRevalidation revalidation ) : CachePolicy
revalidation HttpCacheRevalidation
return CachePolicy
示例#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);
			}
示例#2
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.Revalidation(HttpCacheRevalidation.AllCaches);
			}