Class AsyncHandleable
- Namespace
- Executables.Handling
- Assembly
- executables.dll
Factory methods for creating asynchronous handleables.
public static class AsyncHandleable
- Inheritance
-
AsyncHandleable
- Inherited Members
Methods
Create<T1, T2>(Func<AsyncHandler<T1, T2>, IDisposable>)
Creates an asynchronous handleable from a registration delegate.
[Pure]
public static IAsyncHandleable<T1, T2> Create<T1, T2>(Func<AsyncHandler<T1, T2>, IDisposable> handling)
Parameters
handlingFunc<AsyncHandler<T1, T2>, IDisposable>Delegate that registers a handler and returns a handle for unregistering it.
Returns
- IAsyncHandleable<T1, T2>
Asynchronous handleable backed by
handling.
Type Parameters
T1T2
Exceptions
- ArgumentNullException
handlingis null.