public void Load(IBotPluginLoadContext context)
        {
            IServiceCollection services      = context.Services;
            IConfiguration     configuration = context.Configuration;

            // ContosoAdapter
            services.AddSingleton <IBotFrameworkHttpAdapter, ContosoAdapter>();
        }
Beispiel #2
0
        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));
            }
        }
Beispiel #3
0
 public void Load(IBotPluginLoadContext context)
 {
 }
Beispiel #4
0
 public void Load(IBotPluginLoadContext context)
 {
     _loadAction(context);
 }