Interface IHook<TRequest, TResponse>
Generic interface representing any hook in the system.
Namespace: DirectScale.Disco.Extension.Hooks
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public interface IHook<TRequest, TResponse>
Type Parameters
Name | Description |
---|---|
TRequest | |
TResponse |
Methods
Invoke(TRequest, Func<TRequest, Task<TResponse>>)
Implementation for the hook defined.
Declaration
Task<TResponse> Invoke(TRequest request, Func<TRequest, Task<TResponse>> func)
Parameters
Type | Name | Description |
---|---|---|
TRequest | request | Request object |
System.Func<TRequest, System.Threading.Tasks.Task<TResponse>> | func | Default functionality for this hook |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResponse> |