Class OracleProviderServiceCollectionExtensions
- Namespace
- Steeltoe.CloudFoundry.ConnectorCore.Oracle
- Assembly
- Steeltoe.CloudFoundry.ConnectorCore.dll
public static class OracleProviderServiceCollectionExtensions
- Inheritance
-
OracleProviderServiceCollectionExtensions
- Inherited Members
Methods
AddOracleConnection(IServiceCollection, IConfiguration, ServiceLifetime, ILoggerFactory, bool)
Add Oracle and its IHealthContributor to a ServiceCollection
public static IServiceCollection AddOracleConnection(this IServiceCollection services, IConfiguration config, ServiceLifetime contextLifetime = ServiceLifetime.Scoped, ILoggerFactory logFactory = null, bool addSteeltoeHealthChecks = false)
Parameters
servicesIServiceCollectionService collection to add to
configIConfigurationApp configuration
contextLifetimeServiceLifetimeLifetime of the service to inject
logFactoryILoggerFactorylogging factory
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, ILoggerFactory, bool)
Add Oracle and its IHealthContributor to a ServiceCollection.
public static IServiceCollection AddOracleConnection(this IServiceCollection services, IConfiguration config, string serviceName, ServiceLifetime contextLifetime = ServiceLifetime.Scoped, ILoggerFactory logFactory = null, bool addSteeltoeHealthChecks = false)
Parameters
servicesIServiceCollectionService collection to add to
configIConfigurationApp configuration
serviceNamestringcloud foundry service name binding
contextLifetimeServiceLifetimeLifetime of the service to inject
logFactoryILoggerFactorylogging factory
addSteeltoeHealthChecksboolAdd steeltoeHealth checks even if community health checks exist
Returns
- IServiceCollection
IServiceCollection for chaining
Remarks
OracleConnection is retrievable as both OracleConnection and IDbConnection