Esempio n. 1
0
 public static StorageSession SetCookie(IEnumerable <string> cookie)
 {
     if (Context == null)
     {
         var res = new StorageSession();
         res.Cookie = cookie;
         Context    = res;
     }
     else
     {
         Context.Cookie = cookie;
     }
     return(Context);
 }
Esempio n. 2
0
 public static StorageSession SetKey(string key)
 {
     if (Context == null)
     {
         var res = new StorageSession();
         res.Key = key;
         Context = res;
     }
     else
     {
         Context.Key = key;
     }
     return(Context);
 }
Esempio n. 3
0
 public static StorageSession Create()
 {
     Context = Context ?? new StorageSession();
     return(Context);
 }