Class OracleProviderServiceCollectionExtensions
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
IServiceCollectionService collection to add to
config
IConfigurationApp configuration
contextLifetime
ServiceLifetimeLifetime of the service to inject
addSteeltoeHealthChecks
boolAdd 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
IServiceCollectionService collection to add to
config
IConfigurationApp configuration
serviceName
stringcloud foundry service name binding
contextLifetime
ServiceLifetimeLifetime of the service to inject
addSteeltoeHealthChecks
boolAdd steeltoeHealth checks even if community health checks exist
Returns
- IServiceCollection
IServiceCollection for chaining
Remarks
OracleConnection is retrievable as both OracleConnection and IDbConnection