ServiceCollectionExtensions.AddCloudAdapter Method

Definition

Overloads

Name Description
AddCloudAdapter(IServiceCollection)

Add the default CloudAdapter.

AddCloudAdapter(IHostApplicationBuilder)

Add the default CloudAdapter.

AddCloudAdapter<T>(IServiceCollection)

Add a derived CloudAdapter.

AddCloudAdapter<T>(IHostApplicationBuilder)

Add a derived CloudAdapter.

AddCloudAdapter(IServiceCollection)

Add the default CloudAdapter.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddCloudAdapter(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddCloudAdapter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddCloudAdapter (services As IServiceCollection) As IServiceCollection

Parameters

Returns

Applies to

AddCloudAdapter(IHostApplicationBuilder)

Add the default CloudAdapter.

public static Microsoft.Extensions.Hosting.IHostApplicationBuilder AddCloudAdapter(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder);
static member AddCloudAdapter : Microsoft.Extensions.Hosting.IHostApplicationBuilder -> Microsoft.Extensions.Hosting.IHostApplicationBuilder
<Extension()>
Public Function AddCloudAdapter (builder As IHostApplicationBuilder) As IHostApplicationBuilder

Parameters

builder
IHostApplicationBuilder

The host application builder to which the cloud adapter services will be added. Cannot be null.

Returns

The same instance of IHostApplicationBuilder to allow for method chaining.

Applies to

AddCloudAdapter<T>(IServiceCollection)

Add a derived CloudAdapter.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddCloudAdapter<T>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where T : Microsoft.Agents.Hosting.AspNetCore.CloudAdapter;
static member AddCloudAdapter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'T :> Microsoft.Agents.Hosting.AspNetCore.CloudAdapter)
<Extension()>
Public Function AddCloudAdapter(Of T As CloudAdapter) (services As IServiceCollection) As IServiceCollection

Type Parameters

T

Parameters

Returns

Applies to

AddCloudAdapter<T>(IHostApplicationBuilder)

Add a derived CloudAdapter.

public static Microsoft.Extensions.Hosting.IHostApplicationBuilder AddCloudAdapter<T>(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder) where T : Microsoft.Agents.Hosting.AspNetCore.CloudAdapter;
static member AddCloudAdapter : Microsoft.Extensions.Hosting.IHostApplicationBuilder -> Microsoft.Extensions.Hosting.IHostApplicationBuilder (requires 'T :> Microsoft.Agents.Hosting.AspNetCore.CloudAdapter)
<Extension()>
Public Function AddCloudAdapter(Of T As CloudAdapter) (builder As IHostApplicationBuilder) As IHostApplicationBuilder

Type Parameters

T

Parameters

builder
IHostApplicationBuilder

The host application builder to which the cloud adapter services will be added. Cannot be null.

Returns

The same instance of IHostApplicationBuilder to allow for method chaining.

Applies to