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

            // Initialize request argument(s)
            NotificationChannelName name = new NotificationChannelName("[PROJECT]", "[NOTIFICATION_CHANNEL]");
            bool force = false;
            // Make the request
            await notificationChannelServiceClient.DeleteNotificationChannelAsync(name, force);

            // End snippet
        }
Beispiel #2
0
        /// <summary>Snippet for DeleteNotificationChannelAsync</summary>
        public async Task DeleteNotificationChannelAsync_RequestObject()
        {
            // Snippet: DeleteNotificationChannelAsync(DeleteNotificationChannelRequest,CallSettings)
            // Create client
            NotificationChannelServiceClient notificationChannelServiceClient = await NotificationChannelServiceClient.CreateAsync();

            // Initialize request argument(s)
            DeleteNotificationChannelRequest request = new DeleteNotificationChannelRequest
            {
                NotificationChannelName = new NotificationChannelName("[PROJECT]", "[NOTIFICATION_CHANNEL]"),
            };
            // Make the request
            await notificationChannelServiceClient.DeleteNotificationChannelAsync(request);

            // End snippet
        }