예제 #1
0
 public async Task <IEnumerable <IMatchingEngineRoute> > GetAllRoutesAsync()
 {
     return(await _tableStorage.GetDataAsync(MatchingEngineRouteEntity.GeneratePartitionKey()));
 }
예제 #2
0
 public async Task <IMatchingEngineRoute> GetRouteByIdAsync(string id)
 {
     return(await _tableStorage.GetDataAsync(MatchingEngineRouteEntity.GeneratePartitionKey(), MatchingEngineRouteEntity.GenerateRowKey(id)));
 }
예제 #3
0
 public async Task DeleteRouteAsync(string id)
 {
     await _tableStorage.DeleteIfExistAsync(MatchingEngineRouteEntity.GeneratePartitionKey(), MatchingEngineRouteEntity.GenerateRowKey(id));
 }