Table of Contents

Class OracleServiceCollectionExtensions

Namespace
Steeltoe.Connector.Oracle
Assembly
Steeltoe.Connector.ConnectorCore.dll
public static class OracleServiceCollectionExtensions
Inheritance
OracleServiceCollectionExtensions
Inherited Members

Methods

AddOracleHealthContributor(IServiceCollection, IConfiguration, ServiceLifetime)

Add an IHealthContributor to a ServiceCollection for Oracle

public static IServiceCollection AddOracleHealthContributor(this IServiceCollection services, IConfiguration config, ServiceLifetime contextLifetime = ServiceLifetime.Singleton)

Parameters

services IServiceCollection

Service collection to add to

config IConfiguration

App configuration

contextLifetime ServiceLifetime

Lifetime of the service to inject

Returns

IServiceCollection

IServiceCollection for chaining

AddOracleHealthContributor(IServiceCollection, IConfiguration, string, ServiceLifetime)

Add an IHealthContributor to a ServiceCollection for Oracle

public static IServiceCollection AddOracleHealthContributor(this IServiceCollection services, IConfiguration config, string serviceName, ServiceLifetime contextLifetime = ServiceLifetime.Singleton)

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

Returns

IServiceCollection

IServiceCollection for chaining