Ejemplo n.º 1
0
 public async Task <bool> Exist(Guid operationId, OperationEventType type)
 {
     return(await _storage.GetDataAsync(OperationEventTableEntity.GeneratePartitionKey(operationId),
                                        OperationEventTableEntity.GenerateRowKey(type, operationId)) != null);
 }
Ejemplo n.º 2
0
 public Task InsertIfNotExist(IOperationEvent operationEvent)
 {
     return(_storage.TryInsertAsync(OperationEventTableEntity.Create(operationEvent)));
 }