public void Load(IBotPluginLoadContext context) { IServiceCollection services = context.Services; IConfiguration configuration = context.Configuration; // ContosoAdapter services.AddSingleton <IBotFrameworkHttpAdapter, ContosoAdapter>(); }
public void Load(IBotPluginLoadContext context) { IServiceCollection services = context.Services; IConfiguration configuration = context.Configuration; var options = configuration.Get <AdventureWorksAdapterOptions>(); if (options != null) { services.AddSingleton <IBotFrameworkHttpAdapter>(new AdventureWorksAdapter(options)); } }
public void Load(IBotPluginLoadContext context) { }
public void Load(IBotPluginLoadContext context) { _loadAction(context); }