public SessionIdRequestMiddleware( [NotNull] SessionIdProvider sessionIdProvider, [NotNull] ISetting <HttpSessionSettings> httpSessionSettings) { if (httpSessionSettings == null) { throw new ArgumentNullException(nameof(httpSessionSettings)); } _sessionIdProvider = sessionIdProvider ?? throw new ArgumentNullException(nameof(sessionIdProvider)); _httpSessionSettings = httpSessionSettings.GetSettings(); }
public SessionInfoProvider(SessionIdProvider sessionIdProvider) { _sessionIdProvider = sessionIdProvider ?? throw new ArgumentNullException(nameof(sessionIdProvider)); }