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