CloudAdapter Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- logger
- ILogger<CloudAdapter>
- options
- AdapterOptions
Defaults to Async enabled and 60 second shutdown delay timeout
- middlewares
- IMiddleware[]
- config
- IConfiguration
- hostValidator
- IOutboundHostValidator
Optional shared allowed-hosts validator. When enabled, Activity.ServiceUrl is validated against it.