예제 #1
0
 /// <inheritdoc/>
 public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
 {
     if (WebexAdapter.HasConfiguration(configuration))
     {
         services.AddSingleton <WebexAdapter>();
     }
 }
예제 #2
0
 /// <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));
     }
 }