Table of Contents

Class OracleProviderServiceCollectionExtensions

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

Methods

AddOracleConnection(IServiceCollection, IConfiguration, ServiceLifetime, bool)

Add Oracle and its IHealthContributor to a ServiceCollection

public static IServiceCollection AddOracleConnection(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 steeltoeHealth checks even if community health checks exist

Returns

IServiceCollection

IServiceCollection for chaining

Remarks

OracleConnection is retrievable as both OracleConnection and IDbConnection

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

Add Oracle and its IHealthContributor to a ServiceCollection.

public static IServiceCollection AddOracleConnection(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 steeltoeHealth checks even if community health checks exist

Returns

IServiceCollection

IServiceCollection for chaining

Remarks

OracleConnection is retrievable as both OracleConnection and IDbConnection