Ejemplo n.º 1
0
 /// <inheritdoc/>
 public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
 {
     if (SlackAdapter.HasConfiguration(configuration))
     {
         services.AddSingleton <SlackAdapter>();
     }
 }
 /// <inheritdoc/>
 public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
 {
     if (SlackAdapter.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, SlackAdapter>(sp => new SlackAdapter(configuration));
     }
 }