public Task Handle(StartSaga message, IMessageHandlerContext context)
 {
     return(Task.CompletedTask);
 }
Exemplo n.º 2
0
 public Task Handle(StartSaga message, IMessageHandlerContext context)
 {
     throw new NotImplementedException();
 }
 public Task Handle(StartSaga message, IMessageHandlerContext context)
 {
     Data.DataId = Guid.NewGuid();
     TestContext.ModifiedCorrelationProperty = true;
     return(Task.FromResult(0));
 }
Exemplo n.º 4
0
 public Task Handle(StartSaga message, IMessageHandlerContext context) => Task.CompletedTask;
 public Task Handle(StartSaga message, IMessageHandlerContext context)
 {
     TestContext.MessageReceived = true;
     MarkAsComplete();
     return(Task.FromResult(0));
 }
                public void Handle(StartSaga message)
                {
                    Data.DataId = message.DataId;

                    RequestTimeout(TimeSpan.FromSeconds(5), new TimeHasPassed());
                }
 public Task Handle(StartSaga message, IMessageHandlerContext context)
 {
     scenario.CorrelationId = Data.CorrelationId;
     scenario.Done          = true;
     return(Task.FromResult(0));
 }
Exemplo n.º 8
0
 public Task Handle(StartSaga message, IMessageHandlerContext context)
 {
     Data.Id = Guid.NewGuid();
     TestContext.MessageId = context.MessageId;
     return(Task.FromResult(0));
 }
Exemplo n.º 9
0
        public async Task StartSaga(string clientId, int stepsCount)
        {
            var message = new StartSaga(stepsCount, clientId, Guid.NewGuid(), Guid.NewGuid());

            await _bus.PublishAsync(message);
        }
Exemplo n.º 10
0
 public Task Handle(StartSaga message, IMessageHandlerContext context)
 {
     Data.MessageId = message.Id;
     return(Task.FromResult(0));
 }
                public Task Handle(StartSaga message, IMessageHandlerContext context)
                {
                    Data.DataId = message.DataId;

                    return(RequestTimeout(context, TimeSpan.FromMilliseconds(1), new TimeHasPassed()));
                }
Exemplo n.º 12
0
                public Task Handle(StartSaga message, IMessageHandlerContext context)
                {
                    TestContext.SagaId = Data.Id;

                    return(Task.FromResult(0));
                }