Exemplo n.º 1
0
 public async Task <IMatchingEngineRoute> GetRouteByIdAsync(string id)
 {
     return(await _tableStorage.GetDataAsync(MatchingEngineRouteEntity.GeneratePartitionKey(), MatchingEngineRouteEntity.GenerateRowKey(id)));
 }
Exemplo n.º 2
0
 public async Task DeleteRouteAsync(string id)
 {
     await _tableStorage.DeleteIfExistAsync(MatchingEngineRouteEntity.GeneratePartitionKey(), MatchingEngineRouteEntity.GenerateRowKey(id));
 }
Exemplo n.º 3
0
 public async Task <IEnumerable <IMatchingEngineRoute> > GetAllRoutesAsync()
 {
     return(await _tableStorage.GetDataAsync(MatchingEngineRouteEntity.GeneratePartitionKey()));
 }
Exemplo n.º 4
0
 public async Task AddOrReplaceRouteAsync(IMatchingEngineRoute route)
 {
     await _tableStorage.InsertOrReplaceAsync(MatchingEngineRouteEntity.Create(route));
 }