Class CosmosDbConfigurationBuilderExtensions
Inheritance
System.Object
CosmosDbConfigurationBuilderExtensions
Namespace: Steeltoe.Connectors.CosmosDb
Assembly: Steeltoe.Connectors.dll
Syntax
public static class CosmosDbConfigurationBuilderExtensions : object
Methods
| Edit this page View SourceConfigureCosmosDb(IConfigurationBuilder)
Configures the connection string for a CosmosDB database by merging settings from appsettings.json with cloud service bindings.
Declaration
public static IConfigurationBuilder ConfigureCosmosDb(this IConfigurationBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IConfigurationBuilder | builder | The |
Returns
Type | Description |
---|---|
IConfigurationBuilder | The incoming |
ConfigureCosmosDb(IConfigurationBuilder, Nullable<Action<ConnectorConfigureOptionsBuilder>>)
Configures the connection string for a CosmosDB database by merging settings from appsettings.json with cloud service bindings.
Declaration
public static IConfigurationBuilder ConfigureCosmosDb(this IConfigurationBuilder builder, Action<ConnectorConfigureOptionsBuilder>? configureAction)
Parameters
Type | Name | Description |
---|---|---|
IConfigurationBuilder | builder | The |
System.Nullable<Action<ConnectorConfigureOptionsBuilder>> | configureAction | An optional delegate to configure this connector. |
Returns
Type | Description |
---|---|
IConfigurationBuilder | The incoming |