/// <summary>Snippet for GetServiceAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetServiceRequestObjectAsync()
        {
            // Create client
            ServiceUsageClient serviceUsageClient = await ServiceUsageClient.CreateAsync();

            // Initialize request argument(s)
            GetServiceRequest request = new GetServiceRequest {
                Name = "",
            };
            // Make the request
            Service response = await serviceUsageClient.GetServiceAsync(request);
        }
        /// <summary>Snippet for GetServiceAsync</summary>
        public async Task GetServiceRequestObjectAsync()
        {
            // Snippet: GetServiceAsync(GetServiceRequest, CallSettings)
            // Additional: GetServiceAsync(GetServiceRequest, CancellationToken)
            // Create client
            ServiceUsageClient serviceUsageClient = await ServiceUsageClient.CreateAsync();

            // Initialize request argument(s)
            GetServiceRequest request = new GetServiceRequest {
                Name = "",
            };
            // Make the request
            Service response = await serviceUsageClient.GetServiceAsync(request);

            // End snippet
        }
示例#3
0
        /// <summary>Snippet for GetServiceAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetServiceRequestObjectAsync()
        {
            // Create client
            ServiceUsageClient serviceUsageClient = await ServiceUsageClient.CreateAsync();

            // Initialize request argument(s)
            GetServiceRequest request = new GetServiceRequest {
                Name = "",
            };

            // Make the request
#pragma warning disable CS0612
            Service response = await serviceUsageClient.GetServiceAsync(request);

#pragma warning restore CS0612
        }