public async Task <bool> IsExistsAsync(Guid operationId)
        {
            var partitionKey = MatchingEngineCallsDeduplicationEntity.GetPartitionKey(operationId);
            var rowKey       = MatchingEngineCallsDeduplicationEntity.GetRowKey(operationId);

            return(await _storage.GetDataAsync(partitionKey, rowKey) != null);
        }
        public Task TryRemoveAsync(Guid operationId)
        {
            var partitionKey = MatchingEngineCallsDeduplicationEntity.GetPartitionKey(operationId);
            var rowKey       = MatchingEngineCallsDeduplicationEntity.GetRowKey(operationId);

            return(_storage.DeleteIfExistAsync(partitionKey, rowKey));
        }
 public Task InsertOrReplaceAsync(Guid operationId)
 {
     return(_storage.InsertOrReplaceAsync(new MatchingEngineCallsDeduplicationEntity
     {
         PartitionKey = MatchingEngineCallsDeduplicationEntity.GetPartitionKey(operationId),
         RowKey = MatchingEngineCallsDeduplicationEntity.GetRowKey(operationId)
     }));
 }