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 + "'.");
 }
Exemplo n.º 2
0
 public UrlAuthorizationProvider(IConfigSectionProvider configSectionProvider)
 {
     _locationAuthorizationSection = configSectionProvider.GetSection(LocationAuthorizationConfiguration.SectionName) as LocationAuthorizationConfiguration;
     if (_locationAuthorizationSection == null)
         throw new ConfigurationErrorsException("Missing Configuration Section '" + LocationAuthorizationConfiguration.SectionName + "'.");
 }