예제 #1
0
 /// <summary>
 /// 注册单例存储器,请确保<paramref name="storage"/>是单例的
 /// </summary>
 /// <param name="storage"></param>
 public static void RegisterSessionStorage(ISessionStorage storage)
 {
     SessionStorageProvider.RegisterSessionStorage(storage);
 }
예제 #2
0
 public static void RegiterSessionStorage(Type storageType, bool isSingleton)
 {
     SessionStorageProvider.RegiterSessionStorage(storageType, isSingleton);
 }
예제 #3
0
 private static ISessionStorage GetStorage()
 {
     return(SessionStorageProvider.GetStorage());
 }