/// <summary> /// 初始化一个 <see cref="SessionIdentityStore"/> 类的新实例。 /// </summary> /// <param name="session">会话的存取器。</param> public SessionIdentityStore(ISessionAccessor session) { if (session == null) { throw new ArgumentNullException(nameof(session)); } this._session = session; }
public SessionMiddleware( Options?options, ISessionAccessor sessionAccessor) { options ??= new Options(); IdGenerator = options.IdGenerator; HttpSessionKey = options.HttpSessionKey; SessionAccessor = sessionAccessor; }
public AuthenticatorController( IPublisher publisher, IAuthenticator authenticator, ISessionAccessor sessionAccessor) : base(publisher) { Authenticator = authenticator; SessionAccessor = sessionAccessor; }
public InProcessServerAuthenticator(ISessionAccessor sessionAccessor) => SessionAccessor = sessionAccessor;
public SessionInfo(ISessionAccessor sessionAccessor) { m_sessionAccessor = sessionAccessor; }
public SessionMiddleware(ISessionAccessor sessionAccessor) : this(null, sessionAccessor) { }