public async Task<GetServiceInfoResponse> GetServiceInfoAsync(GetServiceInfoRequest request) { if (!(request?.Services?.Length > 0)) return new GetServiceInfoResponse(); var results = await GetResultsAsync(request.Services).ConfigureAwait(false); var response = new GetServiceInfoResponse { Services = results }; return response; }
public GetServiceInfoResponse GetServiceInfo(GetServiceInfoRequest request) { if (!(request?.Services?.Length > 0)) return new GetServiceInfoResponse(); var results = GetResultsAsync(request.Services); var response = new GetServiceInfoResponse { Services = results.Result }; return response; }