Exemplo n.º 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);
        }
Exemplo n.º 2
0
 static AspnetCookieConsent()
 {
     Settings = new ConsentSettings();
 }