Class PostgresServiceCollectionExtensions
- Namespace
- Steeltoe.Connector.PostgreSql
- Assembly
- Steeltoe.Connector.ConnectorCore.dll
public static class PostgresServiceCollectionExtensions
- Inheritance
-
PostgresServiceCollectionExtensions
- Inherited Members
Methods
AddPostgresHealthContributor(IServiceCollection, IConfiguration, ServiceLifetime)
Add an IHealthContributor to a ServiceCollection for PostgreSQL
public static IServiceCollection AddPostgresHealthContributor(this IServiceCollection services, IConfiguration config, ServiceLifetime contextLifetime = ServiceLifetime.Singleton)
Parameters
services
IServiceCollectionService collection to add to
config
IConfigurationApp configuration
contextLifetime
ServiceLifetimeLifetime of the service to inject
Returns
- IServiceCollection
IServiceCollection for chaining
AddPostgresHealthContributor(IServiceCollection, IConfiguration, string, ServiceLifetime)
Add an IHealthContributor to a ServiceCollection for PostgreSQL
public static IServiceCollection AddPostgresHealthContributor(this IServiceCollection services, IConfiguration config, string serviceName, ServiceLifetime contextLifetime = ServiceLifetime.Singleton)
Parameters
services
IServiceCollectionService collection to add to
config
IConfigurationApp configuration
serviceName
stringcloud foundry service name binding
contextLifetime
ServiceLifetimeLifetime of the service to inject
Returns
- IServiceCollection
IServiceCollection for chaining