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