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

            // Initialize request argument(s)
            FieldMask           updateMask          = new FieldMask();
            NotificationChannel notificationChannel = new NotificationChannel();
            // Make the request
            NotificationChannel response = await notificationChannelServiceClient.UpdateNotificationChannelAsync(updateMask, notificationChannel);

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

            // Initialize request argument(s)
            UpdateNotificationChannelRequest request = new UpdateNotificationChannelRequest
            {
                NotificationChannel = new NotificationChannel(),
            };
            // Make the request
            NotificationChannel response = await notificationChannelServiceClient.UpdateNotificationChannelAsync(request);

            // End snippet
        }