/// <summary> /// 注册单例key提供器,请确保<paramref name="provider"/>是单例的 /// </summary> /// <param name="provider"></param> public static void RegisterSessionKeyProvider(ISessionKeyProvider provider) { SessionKeyProvider.RegisterSessionKeyProvider(provider); }
public static void RegisterSessionKeyProvider(Type providerType, bool isSingleton) { SessionKeyProvider.RegisterSessionKeyProvider(providerType, isSingleton); }
private static ISessionKeyProvider GetProvider() { return(SessionKeyProvider.GetProvider()); }