Class MySqlServiceCollectionExtensions
- Namespace
- Steeltoe.CloudFoundry.Connector.MySql
- Assembly
- Steeltoe.CloudFoundry.ConnectorCore.dll
public static class MySqlServiceCollectionExtensions
- Inheritance
-
MySqlServiceCollectionExtensions
- Inherited Members
Methods
AddMySqlHealthContributor(IServiceCollection, IConfiguration, ServiceLifetime, ILoggerFactory)
Add an IHealthContributor to a ServiceCollection for MySQL
public static IServiceCollection AddMySqlHealthContributor(this IServiceCollection services, IConfiguration config, ServiceLifetime contextLifetime = ServiceLifetime.Singleton, ILoggerFactory logFactory = null)
Parameters
services
IServiceCollectionService collection to add to
config
IConfigurationApp configuration
contextLifetime
ServiceLifetimeLifetime of the service to inject
logFactory
ILoggerFactorylogger factory
Returns
- IServiceCollection
IServiceCollection for chaining
AddMySqlHealthContributor(IServiceCollection, IConfiguration, string, ServiceLifetime, ILoggerFactory)
Add an IHealthContributor to a ServiceCollection for MySQL
public static IServiceCollection AddMySqlHealthContributor(this IServiceCollection services, IConfiguration config, string serviceName, ServiceLifetime contextLifetime = ServiceLifetime.Singleton, ILoggerFactory logFactory = null)
Parameters
services
IServiceCollectionService collection to add to
config
IConfigurationApp configuration
serviceName
stringcloud foundry service name binding
contextLifetime
ServiceLifetimeLifetime of the service to inject
logFactory
ILoggerFactorylogger factory
Returns
- IServiceCollection
IServiceCollection for chaining