public void Unregister(AsyncEventHandler handler) { if (handler.HasNoContent()) { throw new ArgumentNullException(nameof(handler), "Handler cannot be null"); } lock (_lock) Handlers.Remove(handler); }
public void Unregister(AsyncEventHandler handler) { if (handler.HasNoContent()) { throw new ArgumentNullException(nameof(handler), "Handler cannot be null"); } lock (_lock) Handlers.Remove(handler); }