public void ForgetSend <TRequest>(TRequest request, CancellationToken cancellationToken = default) where TRequest : IAsyncRequest { SubscriptionTracker <TRequest> .ThrowIfNoSubscribers(); _asyncMessageBus.PublishAsync(request, cancellationToken).Forget(); }
public UniTask AsyncSend <TRequest>(TRequest request, CancellationToken cancellationToken) where TRequest : IAsyncRequest { SubscriptionTracker <TRequest> .ThrowIfNoSubscribers(); return(_asyncMessageBus.PublishAsync(request, cancellationToken)); }
public void Send <TRequest>(TRequest request) where TRequest : IRequest { SubscriptionTracker <TRequest> .ThrowIfNoSubscribers(); _asyncMessageBus.Publish(request); }
public void Publish <TNotification>(TNotification notification) where TNotification : INotification { SubscriptionTracker <TNotification> .ThrowIfNoSubscribers(); _asyncMessageBus.Publish(notification); }