public async Task HandleAsync(TestNotification2 notification, CancellationToken cancellationToken = default) { MessageReceived2 = true; MessageReceivedCount++; await Task.Delay(TimeSpan.FromMilliseconds(1), cancellationToken).ConfigureAwait(false); }
public void Handle(TestNotification2 notification, CancellationToken cancellationToken = default) { MessageReceived2 = true; MessageReceivedCount++; }
public Task Handle(TestNotification2 notification, CancellationToken cancellationToken) { throw new NotImplementedException(); }