Example #1
0
        /// <summary>Snippet for GetAlertAsync</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 GetAlertRequestObjectAsync()
        {
            // Create client
            AlertCenterServiceClient alertCenterServiceClient = await AlertCenterServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetAlertRequest request = new GetAlertRequest
            {
                CustomerId = "",
                AlertId    = "",
            };
            // Make the request
            Alert response = await alertCenterServiceClient.GetAlertAsync(request);
        }
        /// <summary>Snippet for GetAlertAsync</summary>
        public async Task GetAlertRequestObjectAsync()
        {
            // Snippet: GetAlertAsync(GetAlertRequest, CallSettings)
            // Additional: GetAlertAsync(GetAlertRequest, CancellationToken)
            // Create client
            AlertCenterServiceClient alertCenterServiceClient = await AlertCenterServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetAlertRequest request = new GetAlertRequest
            {
                CustomerId = "",
                AlertId    = "",
            };
            // Make the request
            Alert response = await alertCenterServiceClient.GetAlertAsync(request);

            // End snippet
        }