コード例 #1
0
 public async Task <Maybe <OperationDto> > GetAsync(Guid requestId) =>
 await _providerClient.GetUsingStorageAsync(_providerSettings.OperationsApiUrl,
                                            $"/operations/{requestId}", async() => await _operationRepository.GetAsync(requestId),
                                            async operation => await _operationRepository.AddAsync(operation));
コード例 #2
0
ファイル: UserProvider.cs プロジェクト: bdspaul/Warden-API
 public async Task <Maybe <UserDto> > GetAsync(string userId) =>
 await _providerClient.GetUsingStorageAsync(_providerSettings.UsersApiUrl,
                                            $"/users/{userId}", async() => await _userRepository.GetByIdAsync(userId),
                                            async user => await _userRepository.AddAsync(user));