• Home
Show / Hide Table of Contents

Interface IHystrixTimeoutWrapper

Namespace: Hystrix.Dotnet
Assembly: Hystrix.Dotnet.dll
Syntax
public interface IHystrixTimeoutWrapper

Methods

| Improve this Doc View Source

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

Executes synchronous primaryFunction against a timeout value fetched internally; a failure to execute within that time results in a HystrixCommandException

Declaration
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>>, CancellationTokenSource)

Executes asynchronous primaryTask against a timeout value fetched internally; a failure to execute within that time results in a HystrixCommandException

Declaration
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
  • Improve this Doc
  • View Source
Back to top Licensed under MIT by Travix International.
Generated by DocFX.