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