Beispiel #1
0
        /// <summary>Snippet for VerifyNotificationChannelAsync</summary>
        public async Task VerifyNotificationChannelAsync()
        {
            // Snippet: VerifyNotificationChannelAsync(NotificationChannelName,string,CallSettings)
            // Additional: VerifyNotificationChannelAsync(NotificationChannelName,string,CancellationToken)
            // Create client
            NotificationChannelServiceClient notificationChannelServiceClient = await NotificationChannelServiceClient.CreateAsync();

            // Initialize request argument(s)
            NotificationChannelName name = new NotificationChannelName("[PROJECT]", "[NOTIFICATION_CHANNEL]");
            string code = "";
            // Make the request
            NotificationChannel response = await notificationChannelServiceClient.VerifyNotificationChannelAsync(name, code);

            // End snippet
        }
Beispiel #2
0
        /// <summary>Snippet for VerifyNotificationChannelAsync</summary>
        public async Task VerifyNotificationChannelAsync_RequestObject()
        {
            // Snippet: VerifyNotificationChannelAsync(VerifyNotificationChannelRequest,CallSettings)
            // Additional: VerifyNotificationChannelAsync(VerifyNotificationChannelRequest,CancellationToken)
            // Create client
            NotificationChannelServiceClient notificationChannelServiceClient = await NotificationChannelServiceClient.CreateAsync();

            // Initialize request argument(s)
            VerifyNotificationChannelRequest request = new VerifyNotificationChannelRequest
            {
                NotificationChannelName = new NotificationChannelName("[PROJECT]", "[NOTIFICATION_CHANNEL]"),
                Code = "",
            };
            // Make the request
            NotificationChannel response = await notificationChannelServiceClient.VerifyNotificationChannelAsync(request);

            // End snippet
        }