Class HystrixProviderServiceCollectionExtensions
public static class HystrixProviderServiceCollectionExtensions
- Inheritance
-
HystrixProviderServiceCollectionExtensions
- Inherited Members
Methods
AddHystrixConnection(IServiceCollection, IConfiguration, ServiceLifetime)
Adds HystrixConnectionFactory to your ServiceCollection
public static IServiceCollection AddHystrixConnection(this IServiceCollection services, IConfiguration config, ServiceLifetime contextLifetime = ServiceLifetime.Singleton)
Parameters
servicesIServiceCollectionYour Service Collection
configIConfigurationApplication Configuration
contextLifetimeServiceLifetimeLifetime of the service to inject
Returns
- IServiceCollection
IServiceCollection for chaining
AddHystrixConnection(IServiceCollection, IConfiguration, string, ServiceLifetime)
Adds HystrixConnectionFactory to your ServiceCollection
public static IServiceCollection AddHystrixConnection(this IServiceCollection services, IConfiguration config, string serviceName, ServiceLifetime contextLifetime = ServiceLifetime.Singleton)
Parameters
servicesIServiceCollectionYour Service Collection
configIConfigurationApplication Configuration
serviceNamestringCloud Foundry service name binding
contextLifetimeServiceLifetimeLifetime of the service to inject
Returns
- IServiceCollection
IServiceCollection for chaining