예제 #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;
 }