Table of Contents

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 IServiceCollection

Your Service Collection

config IConfiguration

Application Configuration

contextLifetime ServiceLifetime

Lifetime of the service to inject

logFactory ILoggerFactory

Not 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 IServiceCollection

Your Service Collection

config IConfiguration

Application Configuration

serviceName string

Cloud Foundry service name binding

contextLifetime ServiceLifetime

Lifetime of the service to inject

logFactory ILoggerFactory

Not implemented

Returns

IServiceCollection

IServiceCollection for chaining