Ejemplo n.º 1
0
 /// <summary>Snippet for GetDistanceView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetDistanceViewResourceNames()
 {
     // Create client
     DistanceViewServiceClient distanceViewServiceClient = DistanceViewServiceClient.Create();
     // Initialize request argument(s)
     DistanceViewName resourceName = DistanceViewName.FromCustomerDistanceView("[CUSTOMER]", "[DISTANCE_VIEW]");
     // Make the request
     DistanceView response = distanceViewServiceClient.GetDistanceView(resourceName);
 }
        /// <summary>Snippet for GetDistanceViewAsync</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 GetDistanceViewResourceNamesAsync()
        {
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            DistanceViewName resourceName = DistanceViewName.FromCustomerDistanceView("[CUSTOMER]", "[DISTANCE_VIEW]");
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(resourceName);
        }
 /// <summary>Snippet for GetDistanceView</summary>
 public void GetDistanceViewRequestObject()
 {
     // Snippet: GetDistanceView(GetDistanceViewRequest, CallSettings)
     // Create client
     DistanceViewServiceClient distanceViewServiceClient = DistanceViewServiceClient.Create();
     // Initialize request argument(s)
     GetDistanceViewRequest request = new GetDistanceViewRequest
     {
         ResourceNameAsDistanceViewName = DistanceViewName.FromCustomerDistanceView("[CUSTOMER]", "[DISTANCE_VIEW]"),
     };
     // Make the request
     DistanceView response = distanceViewServiceClient.GetDistanceView(request);
     // End snippet
 }
        /// <summary>Snippet for GetDistanceViewAsync</summary>
        public async Task GetDistanceViewResourceNamesAsync()
        {
            // Snippet: GetDistanceViewAsync(DistanceViewName, CallSettings)
            // Additional: GetDistanceViewAsync(DistanceViewName, CancellationToken)
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            DistanceViewName resourceName = DistanceViewName.FromCustomerDistanceView("[CUSTOMER]", "[DISTANCE_VIEW]");
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(resourceName);

            // End snippet
        }