コード例 #1
0
        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();
        }
コード例 #2
0
 public SessionInfoProvider(SessionIdProvider sessionIdProvider)
 {
     _sessionIdProvider = sessionIdProvider ?? throw new ArgumentNullException(nameof(sessionIdProvider));
 }