共用方式為


AdaptiveBotComponent.ConfigureServices 方法

定義

Bot 元件的進入點,以在資源總管中註冊類型、取用組態,並在服務集合中註冊服務。

public override void ConfigureServices (Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfiguration configuration);
override this.ConfigureServices : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfiguration -> unit
Public Overrides Sub ConfigureServices (services As IServiceCollection, configuration As IConfiguration)

參數

services
IServiceCollection

要註冊相依性插入的服務集合。

configuration
IConfiguration

Bot 元件的組態。

適用於