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;
 }
Exemple #2
0
            public void CompositeSettingsModel()
            {
                var compositeSettings = new CompositeSettings();

                compositeSettings.Path = "SomePath";
                compositeSettings.Cdn  = "SomeCDN";
            }
            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;
            }
 public ConsoleAuthorizer(CompositeSettings appSettings)
 {
     this.appSettings = appSettings;
 }
Exemple #5
0
 public DefaultTokenLoader(CompositeSettings appSettings, Loadable <CompositeSettings> userStore)
 {
     this.appSettings = appSettings;
     this.userStore   = userStore;
 }