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