Interface IExecutionStrategy
Execution Strategies
Namespace: Gossip.Strategies
Assembly: Gossip.dll
Syntax
public interface IExecutionStrategy
Methods
| Improve this Doc View SourceExecute(Action)
Execution Strategy
Declaration
void Execute(Action fn)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | fn | Execution Strategy |
Execute<T>(Func<T>)
Execution Strategy
Declaration
T Execute<T>(Func<T> fn)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<T> | fn | Execution Strategy |
Returns
| Type | Description |
|---|---|
| T | Generic Type T |
Type Parameters
| Name | Description |
|---|---|
| T | Generic Type T |
ExecuteAsync(Func<Task>)
Execution Strategy
Declaration
Task ExecuteAsync(Func<Task> fn)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<Task> | fn | Execution Strategy |
Returns
| Type | Description |
|---|---|
| Task | Task |
ExecuteAsync<T>(Func<Task<T>>)
Execution Strategy
Declaration
Task<T> ExecuteAsync<T>(Func<Task<T>> fn)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<Task<T>> | fn | Execution strategy |
Returns
| Type | Description |
|---|---|
| Task<T> | Task with generic type T |
Type Parameters
| Name | Description |
|---|---|
| T | Generic Type |