Exemple #1
0
        public void ForgetSend <TRequest>(TRequest request, CancellationToken cancellationToken = default)
            where TRequest : IAsyncRequest
        {
            SubscriptionTracker <TRequest> .ThrowIfNoSubscribers();

            _asyncMessageBus.PublishAsync(request, cancellationToken).Forget();
        }
Exemple #2
0
        public UniTask AsyncSend <TRequest>(TRequest request, CancellationToken cancellationToken)
            where TRequest : IAsyncRequest
        {
            SubscriptionTracker <TRequest> .ThrowIfNoSubscribers();

            return(_asyncMessageBus.PublishAsync(request, cancellationToken));
        }
Exemple #3
0
        public void Send <TRequest>(TRequest request) where TRequest : IRequest
        {
            SubscriptionTracker <TRequest> .ThrowIfNoSubscribers();

            _asyncMessageBus.Publish(request);
        }
Exemple #4
0
        public void Publish <TNotification>(TNotification notification) where TNotification : INotification
        {
            SubscriptionTracker <TNotification> .ThrowIfNoSubscribers();

            _asyncMessageBus.Publish(notification);
        }