Class CosmosDbHostApplicationBuilderExtensions
Inheritance
System.Object
CosmosDbHostApplicationBuilderExtensions
Namespace: Steeltoe.Connectors.CosmosDb
Assembly: Steeltoe.Connectors.dll
Syntax
public static class CosmosDbHostApplicationBuilderExtensions : object
Methods
| Edit this page View SourceAddCosmosDb(IHostApplicationBuilder)
Registers a ConnectorFactory<TOptions, TConnection> (with type parameters CosmosDbOptions and Microsoft.Azure.Cosmos.CosmosClient) to connect to a CosmosDB database.
Declaration
public static IHostApplicationBuilder AddCosmosDb(this IHostApplicationBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IHostApplicationBuilder | builder | The |
Returns
Type | Description |
---|---|
IHostApplicationBuilder | The incoming |
AddCosmosDb(IHostApplicationBuilder, Nullable<Action<ConnectorConfigureOptionsBuilder>>, Nullable<Action<ConnectorAddOptionsBuilder>>)
Registers a ConnectorFactory<TOptions, TConnection> (with type parameters CosmosDbOptions and Microsoft.Azure.Cosmos.CosmosClient) to connect to a CosmosDB database.
Declaration
public static IHostApplicationBuilder AddCosmosDb(this IHostApplicationBuilder builder, Action<ConnectorConfigureOptionsBuilder>? configureAction, Action<ConnectorAddOptionsBuilder>? addAction)
Parameters
Type | Name | Description |
---|---|---|
IHostApplicationBuilder | builder | The |
System.Nullable<Action<ConnectorConfigureOptionsBuilder>> | configureAction | An optional delegate to configure configuration of this connector. |
System.Nullable<Action<ConnectorAddOptionsBuilder>> | addAction | An optional delegate to configure this connector. |
Returns
Type | Description |
---|---|
IHostApplicationBuilder | The incoming |