/// <inheritdoc/> public override void ConfigureServices(IServiceCollection services, IConfiguration configuration) { if (WebexAdapter.HasConfiguration(configuration)) { services.AddSingleton <WebexAdapter>(); } }
/// <inheritdoc/> public override void ConfigureServices(IServiceCollection services, IConfiguration configuration) { if (WebexAdapter.HasConfiguration(configuration)) { // Components require the component configuration which is the subsection // assigned to the component. When the botbuilder-dotnet issue #5583 gets resolved, this could // change to the no-parameter overload. services.AddSingleton <IBotFrameworkHttpAdapter, WebexAdapter>(sp => new WebexAdapter(configuration)); } }