ภาษา

CloudAdapter Constructor

Definition

Initializes a new instance of the CloudAdapter class.

public CloudAdapter(Microsoft.Agents.Builder.IChannelServiceClientFactory channelServiceClientFactory, Microsoft.Agents.Hosting.AspNetCore.BackgroundQueue.IActivityTaskQueue activityTaskQueue, Microsoft.Extensions.Logging.ILogger<Microsoft.Agents.Hosting.AspNetCore.CloudAdapter> logger = default, Microsoft.Agents.Hosting.AspNetCore.AdapterOptions options = default, Microsoft.Agents.Builder.IMiddleware[] middlewares = default, Microsoft.Extensions.Configuration.IConfiguration config = default, Microsoft.Agents.Builder.IOutboundHostValidator hostValidator = default);
new Microsoft.Agents.Hosting.AspNetCore.CloudAdapter : Microsoft.Agents.Builder.IChannelServiceClientFactory * Microsoft.Agents.Hosting.AspNetCore.BackgroundQueue.IActivityTaskQueue * Microsoft.Extensions.Logging.ILogger<Microsoft.Agents.Hosting.AspNetCore.CloudAdapter> * Microsoft.Agents.Hosting.AspNetCore.AdapterOptions * Microsoft.Agents.Builder.IMiddleware[] * Microsoft.Extensions.Configuration.IConfiguration * Microsoft.Agents.Builder.IOutboundHostValidator -> Microsoft.Agents.Hosting.AspNetCore.CloudAdapter
Public Sub New (channelServiceClientFactory As IChannelServiceClientFactory, activityTaskQueue As IActivityTaskQueue, Optional logger As ILogger(Of CloudAdapter) = Nothing, Optional options As AdapterOptions = Nothing, Optional middlewares As IMiddleware() = Nothing, Optional config As IConfiguration = Nothing, Optional hostValidator As IOutboundHostValidator = Nothing)

Parameters

channelServiceClientFactory
IChannelServiceClientFactory
activityTaskQueue
IActivityTaskQueue
options
AdapterOptions

Defaults to Async enabled and 60 second shutdown delay timeout

middlewares
IMiddleware[]
hostValidator
IOutboundHostValidator

Optional shared allowed-hosts validator. When enabled, Activity.ServiceUrl is validated against it.

Exceptions

Applies to