Exemplo n.º 1
0
 public ItemQueryRedirectItem(Item innerItem)
     : base(innerItem)
 {
     _BaseAppendQuerystringItem = new BaseAppendQuerystringItem(innerItem);
     _BaseCacheItem = new BaseCacheItem(innerItem);
     _BaseRedirectTypeItem = new BaseRedirectTypeItem(innerItem);
     _BaseStopProcessingItem = new BaseStopProcessingItem(innerItem);
 }
Exemplo n.º 2
0
 public ItemQueryRedirectItem(Item innerItem)
     : base(innerItem)
 {
     _BaseAppendQuerystringItem = new BaseAppendQuerystringItem(innerItem);
     _BaseCacheItem             = new BaseCacheItem(innerItem);
     _BaseRedirectTypeItem      = new BaseRedirectTypeItem(innerItem);
     _BaseStopProcessingItem    = new BaseStopProcessingItem(innerItem);
 }
Exemplo n.º 3
0
 private static void GetCacheability(BaseCacheItem httpCacheabilityTypeItem, IBaseCache redirectAction)
 {
     var httpCacheabilityTypeTargetItem = httpCacheabilityTypeItem.HttpCacheability.TargetItem;
     HttpCacheability? httpCacheability = null;
     if (httpCacheabilityTypeTargetItem != null)
     {
         switch (httpCacheabilityTypeTargetItem.ID.ToString())
         {
             case Constants.HttpCacheabilityType_NoCache_ItemId:
                 httpCacheability = HttpCacheability.NoCache;
                 break;
             case Constants.HttpCacheabilityType_Private_ItemId:
                 httpCacheability = HttpCacheability.Private;
                 break;
             case Constants.HttpCacheabilityType_Server_ItemId:
                 httpCacheability = HttpCacheability.Server;
                 break;
             case Constants.HttpCacheabilityType_ServerAndNoCache_ItemId:
                 httpCacheability = HttpCacheability.ServerAndNoCache;
                 break;
             case Constants.HttpCacheabilityType_Public_ItemId:
                 httpCacheability = HttpCacheability.Public;
                 break;
             case Constants.HttpCacheabilityType_ServerAndPrivate_ItemId:
                 httpCacheability = HttpCacheability.ServerAndPrivate;
                 break;
             default:
                 break;
         }
     }
     redirectAction.HttpCacheability = httpCacheability;
 }