Class HystrixTimeoutWrapper
Inheritance
System.Object
HystrixTimeoutWrapper
Implements
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 HystrixTimeoutWrapper : IHystrixTimeoutWrapper
Constructors
| Improve this Doc View SourceHystrixTimeoutWrapper(HystrixCommandIdentifier, IHystrixConfigurationService)
Declaration
public HystrixTimeoutWrapper(HystrixCommandIdentifier commandIdentifier, IHystrixConfigurationService configurationService)
Parameters
Type | Name | Description |
---|---|---|
HystrixCommandIdentifier | commandIdentifier | |
IHystrixConfigurationService | configurationService |
Methods
| Improve this Doc View SourceExecute<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 |
ExecuteAsync<T>(Func<Task<T>>, CancellationTokenSource)
Declaration
public Task<T> ExecuteAsync<T>(Func<Task<T>> primaryTask, CancellationTokenSource cancellationTokenSource = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Threading.Tasks.Task<T>> | primaryTask | |
System.Threading.CancellationTokenSource | cancellationTokenSource |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<T> |
Type Parameters
Name | Description |
---|---|
T |