Exemple #1
0
		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;
		}
Exemple #2
0
		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;
		}