Пример #1
0
        public Task HandleCommandAsync(IBus bus, SimpleSagaIntermediateMessage input, ILogger Log)
        {
            this.Data.Counter++;

            InvocationCounter.Instance.AddOne();

            return(Task.CompletedTask);
        }
Пример #2
0
        public async Task <SagaData> LookForInstanceAsync(SimpleSagaIntermediateMessage message)
        {
            var sagaData = await SagaPersistence.GetSagaDataAsync <SimpleTestSagaData>(PARTITION_KEY, message.Id.ToString());

            return(sagaData);
        }