Class HystrixProviderServiceCollectionExtensions
Inheritance
System.Object
HystrixProviderServiceCollectionExtensions
Namespace: Steeltoe.Connector.Hystrix
Assembly: Steeltoe.Connector.ConnectorCore.dll
Syntax
public static class HystrixProviderServiceCollectionExtensions : object
Methods
| Edit this page View SourceAddHystrixConnection(IServiceCollection, IConfiguration, ServiceLifetime)
Adds HystrixConnectionFactory to your ServiceCollection
Declaration
public static IServiceCollection AddHystrixConnection(this IServiceCollection services, IConfiguration config, ServiceLifetime contextLifetime = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Your Service Collection |
IConfiguration | config | Application Configuration |
ServiceLifetime | contextLifetime | Lifetime of the service to inject |
Returns
Type | Description |
---|---|
IServiceCollection | IServiceCollection for chaining |
AddHystrixConnection(IServiceCollection, IConfiguration, String, ServiceLifetime)
Adds HystrixConnectionFactory to your ServiceCollection
Declaration
public static IServiceCollection AddHystrixConnection(this IServiceCollection services, IConfiguration config, string serviceName, ServiceLifetime contextLifetime = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Your Service Collection |
IConfiguration | config | Application Configuration |
System.String | serviceName | Cloud Foundry service name binding |
ServiceLifetime | contextLifetime | Lifetime of the service to inject |
Returns
Type | Description |
---|---|
IServiceCollection | IServiceCollection for chaining |