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