Table of Contents

Class SqlServerServiceCollectionExtensions

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

Methods

AddSqlServerHealthContributor(IServiceCollection, IConfiguration, ServiceLifetime, ILoggerFactory)

Add an IHealthContributor to a ServiceCollection for SqlServer

public static IServiceCollection AddSqlServerHealthContributor(this IServiceCollection services, IConfiguration config, ServiceLifetime contextLifetime = ServiceLifetime.Singleton, ILoggerFactory logFactory = null)

Parameters

services IServiceCollection

Service collection to add to

config IConfiguration

App configuration

contextLifetime ServiceLifetime

Lifetime of the service to inject

logFactory ILoggerFactory

logger factory

Returns

IServiceCollection

IServiceCollection for chaining

AddSqlServerHealthContributor(IServiceCollection, IConfiguration, string, ServiceLifetime, ILoggerFactory)

Add an IHealthContributor to a ServiceCollection for SqlServer

public static IServiceCollection AddSqlServerHealthContributor(this IServiceCollection services, IConfiguration config, string serviceName, ServiceLifetime contextLifetime = ServiceLifetime.Singleton, ILoggerFactory logFactory = null)

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

logFactory ILoggerFactory

logger factory

Returns

IServiceCollection

IServiceCollection for chaining