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()); }
public async Task <SagaData> LookForInstanceAsync(SimpleSagaTerminatingMessage message) { var sagaData = await SagaPersistence.GetSagaDataAsync <SimpleTestSagaData>(PARTITION_KEY, message.Id.ToString()); return(sagaData); }
public async Task <SagaData> LookForInstanceAsync(CartItemAdded message) { return(await SagaPersistence.GetSagaDataAsync <OrderSagaData>(PARTITION_KEY, message.UserName)); }
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); }