コード例 #1
0
 public CookieClientIdGenerator(IHttpContextAccessor httpContextAccessor,
                                IClientIdGeneratorConfiguration clientIdGeneratorConfiguration)
 {
     HttpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     Config = clientIdGeneratorConfiguration
              ?? throw new ArgumentNullException(nameof(clientIdGeneratorConfiguration));
 }
コード例 #2
0
 public HttpHeaderClientIdGenerator(IHttpContextAccessor httpContextAccessor,
                                    IClientIdGeneratorConfiguration clientIdGeneratorConfiguration) : base(httpContextAccessor)
 {
     Config = clientIdGeneratorConfiguration
              ?? throw new ArgumentNullException(nameof(clientIdGeneratorConfiguration));
 }