Constructor AsyncHandler
- Namespace
- DotNetBrowser.Handlers
- Assembly
- DotNetBrowser.dll
AsyncHandler(Func<TParameters, Task<TResponse>>)
Initializes an instance of the AsyncHandler<TParameters, TResponse> class.
public AsyncHandler(Func<TParameters, Task<TResponse>> func)
Parameters
func
Func<TParameters, Task<TResponse>>The function that must be executed when the Handle(TParameters) method is called.
Exceptions
- ArgumentException
The
func
is null.