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());
        }
示例#2
0
        public async Task <SagaData> LookForInstanceAsync(SimpleSagaTerminatingMessage message)
        {
            var sagaData = await SagaPersistence.GetSagaDataAsync <SimpleTestSagaData>(PARTITION_KEY, message.Id.ToString());

            return(sagaData);
        }
示例#3
0
 public async Task <SagaData> LookForInstanceAsync(CartItemAdded message)
 {
     return(await SagaPersistence.GetSagaDataAsync <OrderSagaData>(PARTITION_KEY, message.UserName));
 }
示例#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);
        }