本文整理汇总了C#中IConfigurationRepository类的典型用法代码示例。如果您正苦于以下问题:C# IConfigurationRepository类的具体用法?C# IConfigurationRepository怎么用?C# IConfigurationRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IConfigurationRepository类属于命名空间,在下文中一共展示了IConfigurationRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Request
public Request(IConfigurationRepository configuration, IRelyingPartyRepository relyingPartyRepository,
IDelegationRepository delegationRepository)
{
_configuration = configuration;
RelyingPartyRepository = relyingPartyRepository;
DelegationRepository = delegationRepository;
}
示例2: UrlController
public UrlController(IConfigurationManager configurationManager,
IConfigurationRepository configRepository,
IFrontMatterRepository frontMatterRepository,
IMarkupProcessorFactory markupProcessorFactory)
: base(configurationManager)
{
if (configRepository == null)
{
throw new ArgumentNullException("configRepository");
}
if (frontMatterRepository == null)
{
throw new ArgumentNullException("frontMatterRepository");
}
if (markupProcessorFactory == null)
{
throw new ArgumentNullException("markupProcessorFactory");
}
ConfigRepository = configRepository;
FrontMatterRepository = frontMatterRepository;
MarkupProcessorFactory = markupProcessorFactory;
}
示例3: AdministrationService
public AdministrationService(
IUserRepository userRepository,
IArticleRepository articleRepository,
IRepository<ReviewTemplate> reviewTemplateRepository,
IArticleReviewerRepository articleReviewerRepository,
IRepository<AttributeDataType> dataTypesRepository,
IRepository<Category> categoryRepository,
IRepository<Degree> degreeRepository,
IRepository<Page> pagesRepository,
IRepository<Language> languageRepository,
IConfigurationRepository configurationRepository,
IRepository<ErrorLog> errorLogRepository
)
{
this.userRepository = userRepository;
this.articleRepository = articleRepository;
this.reviewTemplateRepository = reviewTemplateRepository;
this.articleReviewerRepository = articleReviewerRepository;
this.dataTypesRepository = dataTypesRepository;
this.categoryRepository = categoryRepository;
this.degreeRepository = degreeRepository;
this.pagesRepository = pagesRepository;
this.languageRepository = languageRepository;
this.configurationRepository = configurationRepository;
this.errorLogRepository = errorLogRepository;
callResult = new CallResult();
}
示例4: OAuth2TokenController
public OAuth2TokenController(IUserRepository userRepository, IConfigurationRepository configurationRepository, IClientsRepository clientsRepository, ICodeTokenRepository refreshTokenRepository)
{
UserRepository = userRepository;
ConfigurationRepository = configurationRepository;
ClientsRepository = clientsRepository;
RefreshTokenRepository = refreshTokenRepository;
}
示例5: CartController
public CartController(ICoffeeRepository coffeeRepo, IConfigurationRepository configRepo)
{
this.coffeeRepo = coffeeRepo;
this.configRepo = configRepo;
this.M = configRepo.Configuration.Where(c => c.Name.Trim() == "m").FirstOrDefault().Value;
this.X = configRepo.Configuration.Where(c => c.Name.Trim() == "x").FirstOrDefault().Value;
}
示例6: MenuViewModel
public MenuViewModel(IConfigurationRepository configuration)
{
this.ShowOAuthClients = configuration.OAuth2.Enabled;
this.ShowOAuthTokens =
configuration.OAuth2.Enabled &&
(configuration.OAuth2.EnableCodeFlow || configuration.OAuth2.EnableResourceOwnerFlow);
}
示例7: UploadBotController
public UploadBotController(ITeamManagementCommands teamCommands, IFormsAuthentication formsAuthentication, IConfigurationRepository configurationRepository, MatchStarter matchStarter)
{
_teamCommands = teamCommands;
_formsAuthentication = formsAuthentication;
_configurationRepository = configurationRepository;
_matchStarter = matchStarter;
}
示例8: HomeController
public HomeController(ITeamManagementQueries teamManagementQueries,
IConfigurationRepository configurationRepository)
{
_teamManagementQueries = teamManagementQueries;
_configurationRepository = configurationRepository;
ViewData["inCloud"] = RockPaperAzure.AzureHelper.IsRunningInCloud;
}
示例9: SystemNetEmailService
public SystemNetEmailService(IConfigurationRepository configurationRepository, ILoggingService loggingService)
{
if (configurationRepository == null) throw new ArgumentNullException("ConfigurationRepository");
if (loggingService == null) throw new ArgumentNullException("LoggingService");
_configurationRepository = configurationRepository;
_loggingService = loggingService;
}
示例10: NMultifileConfiguration
internal NMultifileConfiguration(IConfigurationRepository repository,
INSectionMergerRegistry mergerRegistry, IList<string> fileNames)
{
this.repository = repository;
this.mergerRegistry = mergerRegistry;
this.fileNames = fileNames ?? new List<string>();
}
示例11: BotsController
public BotsController(ITeamManagementCommands teamCommands, ITeamRepository teamRepository, IConfigurationRepository configurationRepository, ILeaderboardRepository leaderboardRepository)
{
_teamCommands = teamCommands;
_teamRepository = teamRepository;
_configurationRepository = configurationRepository;
_leaderboardRepository = leaderboardRepository;
}
示例12: ProfileApiController
public ProfileApiController(IUserManagementRepository userManagementRepository, IConfigurationRepository configurationRepository, IRelyingPartyRepository relyingPartyRepository)
{
UserManagementRepository = userManagementRepository;
//ClientRepository = clientRepository;
ConfigurationRepository = configurationRepository;
RelyingPartyRepository = relyingPartyRepository;
}
示例13: ProductService
public ProductService(
IProductRepository productRepository,
ICacheStorage cacheStorage,
IConfigurationRepository configurationRepository,
ILoggingService loggingService)
{
if (productRepository == null)
{
throw new ArgumentNullException("ProductRepository");
}
if (cacheStorage == null)
{
throw new ArgumentNullException("CacheStorage");
}
if (configurationRepository == null)
{
throw new ArgumentException("Configuration");
}
if (loggingService == null)
{
throw new ArgumentException("Logging");
}
this._productRepository = productRepository;
this._cacheStorage = cacheStorage;
this._configurationRepository = configurationRepository;
this._loggingService = loggingService;
}
示例14: OAuth2AuthorizeController
public OAuth2AuthorizeController(IConfigurationRepository configuration, IClientsRepository client, IRelyingPartyRepository rpRepository, ICodeTokenRepository codeTokenRepository)
{
Configuration = configuration;
Clients = client;
RPRepository = rpRepository;
CodeTokenRepository = codeTokenRepository;
}
示例15: AuthenticationController
public AuthenticationController(IProtocolDiscovery defaultProtocolDiscovery, IFederationContext federationContext, IConfigurationRepository configuration)
{
this.protocolDiscovery = defaultProtocolDiscovery;
this.federationContext = federationContext;
this.configuration = configuration;
this.multiProtocolServiceProperties = this.configuration.RetrieveMultiProtocolIssuer();
}