Class HystrixProviderServiceCollectionExtensions
- Namespace
- Steeltoe.CloudFoundry.Connector.Hystrix
- Assembly
- Steeltoe.CloudFoundry.ConnectorCore.dll
public static class HystrixProviderServiceCollectionExtensions
- Inheritance
-
HystrixProviderServiceCollectionExtensions
- Inherited Members
Methods
AddHystrixConnection(IServiceCollection, IConfiguration, ServiceLifetime, ILoggerFactory)
Adds HystrixConnectionFactory to your ServiceCollection
public static IServiceCollection AddHystrixConnection(this IServiceCollection services, IConfiguration config, ServiceLifetime contextLifetime = ServiceLifetime.Singleton, ILoggerFactory logFactory = null)
Parameters
services
IServiceCollectionYour Service Collection
config
IConfigurationApplication Configuration
contextLifetime
ServiceLifetimeLifetime of the service to inject
logFactory
ILoggerFactoryNot implemented
Returns
- IServiceCollection
IServiceCollection for chaining
AddHystrixConnection(IServiceCollection, IConfiguration, string, ServiceLifetime, ILoggerFactory)
Adds HystrixConnectionFactory to your ServiceCollection
public static IServiceCollection AddHystrixConnection(this IServiceCollection services, IConfiguration config, string serviceName, ServiceLifetime contextLifetime = ServiceLifetime.Singleton, ILoggerFactory logFactory = null)
Parameters
services
IServiceCollectionYour Service Collection
config
IConfigurationApplication Configuration
serviceName
stringCloud Foundry service name binding
contextLifetime
ServiceLifetimeLifetime of the service to inject
logFactory
ILoggerFactoryNot implemented
Returns
- IServiceCollection
IServiceCollection for chaining