public override void ConfigureServices(IServiceCollection services, IConfiguration configuration, IHostEnvironment environment) { base.ConfigureServices(services, configuration, environment); PropertiesProvider.RegisterBioEngineSectionProperties <SeoContentPropertiesSet>("seo"); PropertiesProvider.RegisterBioEngineContentProperties <SeoContentPropertiesSet>("seo"); PropertiesProvider.RegisterBioEngineProperties <SeoSitePropertiesSet, Site>("seosite"); }
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration, IHostEnvironment environment) { services.AddSingleton <FacebookService>(); services.AddScoped <IContentPublisher <FacebookConfig>, FacebookContentPublisher>(); services.AddScoped <FacebookContentPublisher>(); PropertiesProvider.RegisterBioEngineProperties <FacebookSitePropertiesSet, Site>("facebooksite"); }
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration, IHostEnvironment environment) { services.AddSingleton <TwitterService>(); services.AddScoped <IContentPublisher <TwitterPublishConfig>, TwitterContentPublisher>(); services.AddScoped <TwitterContentPublisher>(); PropertiesProvider.RegisterBioEngineProperties <TwitterSitePropertiesSet, Site>("twittersite"); }
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration, IHostEnvironment environment) { PropertiesProvider.RegisterBioEngineProperties <IPBSitePropertiesSet, Site>("ipbsite"); services.AddSingleton(typeof(IPBModuleConfig), Config); services.AddSingleton(Config); services.AddSingleton <IPBApiClientFactory>(); services.AddScoped <IPBCommentsSynchronizer>(); services.AddHttpClient(); }