Exemplo n.º 1
0
 /// <summary>Snippet for GetLifeEvent</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetLifeEventResourceNames()
 {
     // Create client
     LifeEventServiceClient lifeEventServiceClient = LifeEventServiceClient.Create();
     // Initialize request argument(s)
     LifeEventName resourceName = LifeEventName.FromCustomerLifeEvent("[CUSTOMER_ID]", "[LIFE_EVENT_ID]");
     // Make the request
     LifeEvent response = lifeEventServiceClient.GetLifeEvent(resourceName);
 }
Exemplo n.º 2
0
        /// <summary>Snippet for GetLifeEventAsync</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 GetLifeEventResourceNamesAsync()
        {
            // Create client
            LifeEventServiceClient lifeEventServiceClient = await LifeEventServiceClient.CreateAsync();

            // Initialize request argument(s)
            LifeEventName resourceName = LifeEventName.FromCustomerLifeEvent("[CUSTOMER_ID]", "[LIFE_EVENT_ID]");
            // Make the request
            LifeEvent response = await lifeEventServiceClient.GetLifeEventAsync(resourceName);
        }
 /// <summary>Snippet for GetLifeEvent</summary>
 public void GetLifeEventRequestObject()
 {
     // Snippet: GetLifeEvent(GetLifeEventRequest, CallSettings)
     // Create client
     LifeEventServiceClient lifeEventServiceClient = LifeEventServiceClient.Create();
     // Initialize request argument(s)
     GetLifeEventRequest request = new GetLifeEventRequest
     {
         ResourceNameAsLifeEventName = LifeEventName.FromCustomerLifeEvent("[CUSTOMER_ID]", "[LIFE_EVENT_ID]"),
     };
     // Make the request
     LifeEvent response = lifeEventServiceClient.GetLifeEvent(request);
     // End snippet
 }
        /// <summary>Snippet for GetLifeEventAsync</summary>
        public async Task GetLifeEventResourceNamesAsync()
        {
            // Snippet: GetLifeEventAsync(LifeEventName, CallSettings)
            // Additional: GetLifeEventAsync(LifeEventName, CancellationToken)
            // Create client
            LifeEventServiceClient lifeEventServiceClient = await LifeEventServiceClient.CreateAsync();

            // Initialize request argument(s)
            LifeEventName resourceName = LifeEventName.FromCustomerLifeEvent("[CUSTOMER_ID]", "[LIFE_EVENT_ID]");
            // Make the request
            LifeEvent response = await lifeEventServiceClient.GetLifeEventAsync(resourceName);

            // End snippet
        }