Table of Contents

Class SqlServerProviderServiceCollectionExtensions

Namespace
Steeltoe.Connector.SqlServer
Assembly
Steeltoe.Connector.ConnectorCore.dll
public static class SqlServerProviderServiceCollectionExtensions
Inheritance
SqlServerProviderServiceCollectionExtensions
Inherited Members

Methods

AddSqlServerConnection(IServiceCollection, IConfiguration, ServiceLifetime, bool)

Add SQL Server to a ServiceCollection

public static IServiceCollection AddSqlServerConnection(this IServiceCollection services, IConfiguration config, ServiceLifetime contextLifetime = ServiceLifetime.Scoped, bool addSteeltoeHealthChecks = false)

Parameters

services IServiceCollection

Service collection to add to

config IConfiguration

App configuration

contextLifetime ServiceLifetime

Lifetime of the service to inject

addSteeltoeHealthChecks bool

Add Steeltoe health check when community healthchecks exist

Returns

IServiceCollection

IServiceCollection for chaining

AddSqlServerConnection(IServiceCollection, IConfiguration, string, ServiceLifetime, bool)

Add SQL Server to a ServiceCollection

public static IServiceCollection AddSqlServerConnection(this IServiceCollection services, IConfiguration config, string serviceName, ServiceLifetime contextLifetime = ServiceLifetime.Scoped, bool addSteeltoeHealthChecks = false)

Parameters

services IServiceCollection

Service collection to add to

config IConfiguration

App configuration

serviceName string

cloud foundry service name binding

contextLifetime ServiceLifetime

Lifetime of the service to inject

addSteeltoeHealthChecks bool

Add Steeltoe health check when community healthchecks exist

Returns

IServiceCollection

IServiceCollection for chaining