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); }
public static StorageSession SetKey(string key) { if (Context == null) { var res = new StorageSession(); res.Key = key; Context = res; } else { Context.Key = key; } return(Context); }
public static StorageSession Create() { Context = Context ?? new StorageSession(); return(Context); }