• Home
Show / Hide Table of Contents

Class HystrixCommand

Inheritance
System.Object
HystrixCommand
Implements
IHystrixCommand
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Hystrix.Dotnet
Assembly: Hystrix.Dotnet.dll
Syntax
public class HystrixCommand : IHystrixCommand

Constructors

| Improve this Doc View Source

HystrixCommand(HystrixCommandIdentifier, IHystrixTimeoutWrapper, IHystrixCircuitBreaker, IHystrixCommandMetrics, IHystrixThreadPoolMetrics, IHystrixConfigurationService)

Declaration
public HystrixCommand(HystrixCommandIdentifier commandIdentifier, IHystrixTimeoutWrapper timeoutWrapper, IHystrixCircuitBreaker circuitBreaker, IHystrixCommandMetrics commandMetrics, IHystrixThreadPoolMetrics threadPoolMetrics, IHystrixConfigurationService configurationService)
Parameters
Type Name Description
HystrixCommandIdentifier commandIdentifier
IHystrixTimeoutWrapper timeoutWrapper
IHystrixCircuitBreaker circuitBreaker
IHystrixCommandMetrics commandMetrics
IHystrixThreadPoolMetrics threadPoolMetrics
IHystrixConfigurationService configurationService

Properties

| Improve this Doc View Source

CircuitBreaker

Declaration
public IHystrixCircuitBreaker CircuitBreaker { get; }
Property Value
Type Description
IHystrixCircuitBreaker
| Improve this Doc View Source

CommandIdentifier

Declaration
public HystrixCommandIdentifier CommandIdentifier { get; }
Property Value
Type Description
HystrixCommandIdentifier
| Improve this Doc View Source

CommandMetrics

Declaration
public IHystrixCommandMetrics CommandMetrics { get; }
Property Value
Type Description
IHystrixCommandMetrics
| Improve this Doc View Source

ConfigurationService

Declaration
public IHystrixConfigurationService ConfigurationService { get; }
Property Value
Type Description
IHystrixConfigurationService
| Improve this Doc View Source

ThreadPoolMetrics

Declaration
public IHystrixThreadPoolMetrics ThreadPoolMetrics { get; }
Property Value
Type Description
IHystrixThreadPoolMetrics

Methods

| Improve this Doc View Source

Execute<T>(Func<T>, Func<T>, CancellationTokenSource)

Declaration
public T Execute<T>(Func<T> primaryFunction, Func<T> fallbackFunction, CancellationTokenSource cancellationTokenSource = null)
Parameters
Type Name Description
System.Func<T> primaryFunction
System.Func<T> fallbackFunction
System.Threading.CancellationTokenSource cancellationTokenSource
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

Execute<T>(Func<T>, CancellationTokenSource)

Declaration
public T Execute<T>(Func<T> primaryFunction, CancellationTokenSource cancellationTokenSource = null)
Parameters
Type Name Description
System.Func<T> primaryFunction
System.Threading.CancellationTokenSource cancellationTokenSource
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

ExecuteAsync<T>(Func<Task<T>>, Func<Task<T>>, CancellationTokenSource)

Declaration
public Task<T> ExecuteAsync<T>(Func<Task<T>> primaryFunction, Func<Task<T>> fallbackFunction, CancellationTokenSource cancellationTokenSource = null)
Parameters
Type Name Description
System.Func<System.Threading.Tasks.Task<T>> primaryFunction
System.Func<System.Threading.Tasks.Task<T>> fallbackFunction
System.Threading.CancellationTokenSource cancellationTokenSource
Returns
Type Description
System.Threading.Tasks.Task<T>
Type Parameters
Name Description
T
| Improve this Doc View Source

ExecuteAsync<T>(Func<Task<T>>, CancellationTokenSource)

Declaration
public Task<T> ExecuteAsync<T>(Func<Task<T>> primaryFunction, CancellationTokenSource cancellationTokenSource = null)
Parameters
Type Name Description
System.Func<System.Threading.Tasks.Task<T>> primaryFunction
System.Threading.CancellationTokenSource cancellationTokenSource
Returns
Type Description
System.Threading.Tasks.Task<T>
Type Parameters
Name Description
T

Implements

IHystrixCommand
  • Improve this Doc
  • View Source
Back to top Licensed under MIT by Travix International.
Generated by DocFX.