public void Subscribe <T>(Func <T, Task> eventHandlerTaskFactory) { eventHandlerTaskFactory.NullGuard(); var subscription = new AsyncSubscription <T>(eventHandlerTaskFactory); InternalSubscribe(subscription); }
private bool Equals(AsyncSubscription <T> other) { return(Method.Equals(other.Method)); }
public void Unsubscribe <T>(Func <T, Task> eventHandlerTaskFactory) { var subscription = new AsyncSubscription <T>(eventHandlerTaskFactory); InternalUnsubscribe(subscription); }