Exemplo n.º 1
0
 /// <summary>Snippet for GetSharedSet</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetSharedSetResourceNames()
 {
     // Create client
     SharedSetServiceClient sharedSetServiceClient = SharedSetServiceClient.Create();
     // Initialize request argument(s)
     SharedSetName resourceName = SharedSetName.FromCustomerSharedSet("[CUSTOMER]", "[SHARED_SET]");
     // Make the request
     SharedSet response = sharedSetServiceClient.GetSharedSet(resourceName);
 }
Exemplo n.º 2
0
        /// <summary>Snippet for GetSharedSetAsync</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 GetSharedSetResourceNamesAsync()
        {
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            SharedSetName resourceName = SharedSetName.FromCustomerSharedSet("[CUSTOMER_ID]", "[SHARED_SET_ID]");
            // Make the request
            SharedSet response = await sharedSetServiceClient.GetSharedSetAsync(resourceName);
        }
 /// <summary>Snippet for GetSharedSet</summary>
 public void GetSharedSetResourceNames()
 {
     // Snippet: GetSharedSet(SharedSetName, CallSettings)
     // Create client
     SharedSetServiceClient sharedSetServiceClient = SharedSetServiceClient.Create();
     // Initialize request argument(s)
     SharedSetName resourceName = SharedSetName.FromCustomerSharedSet("[CUSTOMER_ID]", "[SHARED_SET_ID]");
     // Make the request
     SharedSet response = sharedSetServiceClient.GetSharedSet(resourceName);
     // End snippet
 }
 /// <summary>Snippet for GetSharedSet</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetSharedSetRequestObject()
 {
     // Create client
     SharedSetServiceClient sharedSetServiceClient = SharedSetServiceClient.Create();
     // Initialize request argument(s)
     GetSharedSetRequest request = new GetSharedSetRequest
     {
         ResourceNameAsSharedSetName = SharedSetName.FromCustomerSharedSet("[CUSTOMER_ID]", "[SHARED_SET_ID]"),
     };
     // Make the request
     SharedSet response = sharedSetServiceClient.GetSharedSet(request);
 }
Exemplo n.º 5
0
        /// <summary>Snippet for GetSharedSetAsync</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 GetSharedSetRequestObjectAsync()
        {
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetSharedSetRequest request = new GetSharedSetRequest
            {
                ResourceNameAsSharedSetName = SharedSetName.FromCustomerSharedSet("[CUSTOMER]", "[SHARED_SET]"),
            };
            // Make the request
            SharedSet response = await sharedSetServiceClient.GetSharedSetAsync(request);
        }
        /// <summary>Snippet for GetSharedSetAsync</summary>
        public async Task GetSharedSetResourceNamesAsync()
        {
            // Snippet: GetSharedSetAsync(SharedSetName, CallSettings)
            // Additional: GetSharedSetAsync(SharedSetName, CancellationToken)
            // Create client
            SharedSetServiceClient sharedSetServiceClient = await SharedSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            SharedSetName resourceName = SharedSetName.FromCustomerSharedSet("[CUSTOMER_ID]", "[SHARED_SET_ID]");
            // Make the request
            SharedSet response = await sharedSetServiceClient.GetSharedSetAsync(resourceName);

            // End snippet
        }