public MetricActionUrlAuthorizationProvider(IConfigSectionProvider configSectionProvider, ICurrentUserClaimInterrogator currentUserClaimInterrogator)
 {
     this.currentUserClaimInterrogator = currentUserClaimInterrogator;
     locationAuthorizationSection = configSectionProvider.GetSection(LocationAuthorizationConfiguration.SectionName) as LocationAuthorizationConfiguration;
     if (locationAuthorizationSection == null)
         throw new ConfigurationErrorsException("Missing Configuration Section '" + LocationAuthorizationConfiguration.SectionName + "'.");
 }
 public UrlAuthorizationProvider(IConfigSectionProvider configSectionProvider)
 {
     _locationAuthorizationSection = configSectionProvider.GetSection(LocationAuthorizationConfiguration.SectionName) as LocationAuthorizationConfiguration;
     if (_locationAuthorizationSection == null)
         throw new ConfigurationErrorsException("Missing Configuration Section '" + LocationAuthorizationConfiguration.SectionName + "'.");
 }