Example #1
0
        public ConsentMiddleware(AppFunc next, IFileShim fileShim, ConsentSettings settings, Func <IOwinRequest, string> cultureCallback)
        {
            _next            = next;
            _settings        = settings;
            _cultureCallback = cultureCallback;

            _cachedHtmlContent = fileShim.ReadAllText(settings.HtmlFileLocation);
        }
Example #2
0
 private AspnetCookieConsent(IFileShim fileShim, ConsentService consentService)
 {
     _fileShim       = fileShim;
     _consentService = consentService;
 }