Пример #1
0
 public HttpCookie(IHttpContextAccessor httpAccessor,
                   IDataProtectionProvider dataProtectionProvider,
                   IOptions <CookieManagerOptions> optionAccessor)
 {
     _httpContext          = httpAccessor.HttpContext;
     _dataProtector        = dataProtectionProvider.CreateProtector(Purpose);
     _cookieManagerOptions = optionAccessor.Value;
     _chunkingHttpCookie   = new ChunkingHttpCookie(optionAccessor);
 }
Пример #2
0
 public ChunkingHttpCookie(IOptions <CookieManagerOptions> optionAccessor)
 {
     _cookieManagerOptions = optionAccessor.Value;
 }