public ConsentMiddleware(AppFunc next, IFileShim fileShim, ConsentSettings settings, Func <IOwinRequest, string> cultureCallback) { _next = next; _settings = settings; _cultureCallback = cultureCallback; _cachedHtmlContent = fileShim.ReadAllText(settings.HtmlFileLocation); }
private AspnetCookieConsent(IFileShim fileShim, ConsentService consentService) { _fileShim = fileShim; _consentService = consentService; }