public async Task <List <SagaData> > LookForInstanceAsync(EventSagaIntermediateMessage message)
        {
            var tableQuery = new TableQuery <EventTestSagaData>().Where(TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, PARTITION_KEY));



            var sagasData = await SagaPersistence.FindSagaDataAsync <EventTestSagaData>(tableQuery);

            return(sagasData.Select(sd => sd as SagaData).ToList());
        }
Esempio n. 2
0
        public async Task <SagaData> LookForInstanceAsync(SimpleSagaTerminatingMessage message)
        {
            var sagaData = await SagaPersistence.GetSagaDataAsync <SimpleTestSagaData>(PARTITION_KEY, message.Id.ToString());

            return(sagaData);
        }
Esempio n. 3
0
 public async Task <SagaData> LookForInstanceAsync(CartItemAdded message)
 {
     return(await SagaPersistence.GetSagaDataAsync <OrderSagaData>(PARTITION_KEY, message.UserName));
 }
Esempio n. 4
0
 public async Task <SagaData> LookForInstanceAsync(PayOrderResponse message)
 {
     return(await SagaPersistence.GetSagaDataAsync <OrderSagaData>(PARTITION_KEY, message.UserName));
 }
        public async Task <SagaData> LookForInstanceAsync(ErrorSagaIntermediateMessage message)
        {
            var sagaData = await SagaPersistence.GetSagaDataAsync <ErrorTestSagaData>(PARTITION_KEY, message.Id.ToString());

            return(sagaData);
        }