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
servicesIServiceCollectionService collection to add to
configIConfigurationApp configuration
contextLifetimeServiceLifetimeLifetime of the service to inject
addSteeltoeHealthChecksboolAdd 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
servicesIServiceCollectionService collection to add to
configIConfigurationApp configuration
serviceNamestringcloud foundry service name binding
contextLifetimeServiceLifetimeLifetime of the service to inject
addSteeltoeHealthChecksboolAdd steeltoeHealth checks even if community health checks exist
Returns
- IServiceCollection
IServiceCollection for chaining
Remarks
OracleConnection is retrievable as both OracleConnection and IDbConnection