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