Class NoopExecutionStrategy
Noop Execution Strategy
Implements
Namespace: Gossip.Connection
Assembly: Gossip.dll
Syntax
public class NoopExecutionStrategy : object, IExecutionStrategy
Methods
| Improve this Doc View SourceExecute(Action)
Execution Strategy
Declaration
public void Execute(Action fn)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | fn | Execution Strategy |
Execute<T>(Func<T>)
Execution Strategy
Declaration
public 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
public 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
public 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 |