상속: ICachePolicy
예제 #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.ServerCaching(DateTime.UtcNow);
			}
예제 #3
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.Revalidation(HttpCacheRevalidation.AllCaches);
			}
예제 #4
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
			}
예제 #5
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.ProxyMaxAge(TimeSpan.FromDays(1));
			}
예제 #6
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.OmitVaryStar(true);
			}
예제 #7
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.NoTransforms();
			}
예제 #8
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.NoStore();
			}
예제 #9
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.NoServerCaching();
			}
예제 #10
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.ETag("etag");
			}
예제 #11
0
			public void SetUp()
			{
				_cachePolicy = new CachePolicy();
				_cachePolicy.AllowResponseInBrowserHistory(true);
			}