public ErrorController(ILogger <ErrorController> logger, IOptions <CompositeSettings> compositeSettings,
                        IDssReader _dssReader, ICosmosService cosmosServiceService, IOptions <CompositeSettings> configuration,
                        IDocumentService <CmsApiSharedContentModel> documentService, IConfiguration config)
     : base(compositeSettings, _dssReader, cosmosServiceService, documentService, config)
 {
     _configuration = configuration.Value;
 }
Пример #2
0
            public void CompositeSettingsModel()
            {
                var compositeSettings = new CompositeSettings();

                compositeSettings.Path = "SomePath";
                compositeSettings.Cdn  = "SomeCDN";
            }
Пример #3
0
            public MsDiCompositeEventHandler(
                IServiceProvider provider,
                CompositeSettings settings)
            {
                if (provider == null)
                {
                    throw new ArgumentNullException(nameof(provider));
                }
                if (settings == null)
                {
                    throw new ArgumentNullException(nameof(settings));
                }

                this.provider = provider;
                this.settings = settings;
            }
Пример #4
0
 public ConsoleAuthorizer(CompositeSettings appSettings)
 {
     this.appSettings = appSettings;
 }
Пример #5
0
 public DefaultTokenLoader(CompositeSettings appSettings, Loadable <CompositeSettings> userStore)
 {
     this.appSettings = appSettings;
     this.userStore   = userStore;
 }