Class FakeHystrixCommand
Inheritance
System.Object
FakeHystrixCommand
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()
Assembly: Hystrix.Dotnet.dll
Syntax
public class FakeHystrixCommand : IHystrixCommand
Constructors
|
Improve this Doc
View Source
FakeHystrixCommand(HystrixCommandIdentifier, Boolean)
Declaration
public FakeHystrixCommand(HystrixCommandIdentifier commandIdentifier, bool runFallbackOrThrowException)
Parameters
Properties
|
Improve this Doc
View Source
CircuitBreaker
Declaration
public IHystrixCircuitBreaker CircuitBreaker { get; }
Property Value
|
Improve this Doc
View Source
CommandIdentifier
Declaration
public HystrixCommandIdentifier CommandIdentifier { get; }
Property Value
|
Improve this Doc
View Source
CommandMetrics
Declaration
public IHystrixCommandMetrics CommandMetrics { get; }
Property Value
|
Improve this Doc
View Source
ConfigurationService
Declaration
public IHystrixConfigurationService ConfigurationService { get; }
Property Value
|
Improve this Doc
View Source
ThreadPoolMetrics
Declaration
public IHystrixThreadPoolMetrics ThreadPoolMetrics { get; }
Property Value
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 Parameters
|
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 Parameters
|
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
|
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
Implements