Ejemplo n.º 1
0
        public async Task HandleAsync(IMessageContext <StartParentSaga> context, CancellationToken cancellationToken = default)
        {
            _logger.LogInformation($"starting parent saga '{context.Message.CorrelationId}'...");

            var message = new ProcessParentSaga(Guid.NewGuid(), context.Message.CorrelationId);

            this.Publish(message);
        }
Ejemplo n.º 2
0
        public async Task HandleAsync(IMessageContext <StartParentSaga> context, CancellationToken cancellationToken = default)
        {
            var message = new ProcessParentSaga(Guid.NewGuid(), context.Message.CorrelationId);

            await this.Bus.PublishAsync(message, cancellationToken);
        }