public UserSessionStartObserver(WebsiteSettings settings, ISchemaCache schemaCache, IWebApplicationUrl applicationUrl, IClarifySessionUsageReporter sessionUsageReporter, ILogger logger)
 {
     _settings             = settings;
     _schemaCache          = schemaCache;
     _applicationUrl       = applicationUrl;
     _sessionUsageReporter = sessionUsageReporter;
     _logger = logger;
 }
        public RequestPathAuthenticationPolicy(WebsiteSettings settings, ILogger logger)
        {
            _settings = settings;
            _logger   = logger;
            var ignoredFilesSetting = _settings.AnonymousAccessFileExtensions;

            if (ignoredFilesSetting.IsEmpty())
            {
                _logger.LogDebug("Whitelisting authentication for default file extensions: {0}", DefaultExtensionWhiteList);
                ignoredFilesSetting = DefaultExtensionWhiteList;
            }
            else
            {
                _logger.LogDebug("Whitelisting authentication for file extensions from settings : {0}", ignoredFilesSetting);
            }
            _whiteListExtensions = new HashSet <string>(GetWhiteListedExtensions(ignoredFilesSetting), StringComparer.OrdinalIgnoreCase);
        }