Table of Contents

Class HystrixProviderServiceCollectionExtensions

Namespace
Steeltoe.Connector.Hystrix
Assembly
Steeltoe.Connector.ConnectorCore.dll
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

services IServiceCollection

Your Service Collection

config IConfiguration

Application Configuration

contextLifetime ServiceLifetime

Lifetime 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

services IServiceCollection

Your Service Collection

config IConfiguration

Application Configuration

serviceName string

Cloud Foundry service name binding

contextLifetime ServiceLifetime

Lifetime of the service to inject

Returns

IServiceCollection

IServiceCollection for chaining