/// <summary>Snippet for CreateNotificationChannelAsync</summary> public async Task CreateNotificationChannelAsync() { // Snippet: CreateNotificationChannelAsync(ProjectName,NotificationChannel,CallSettings) // Additional: CreateNotificationChannelAsync(ProjectName,NotificationChannel,CancellationToken) // Create client NotificationChannelServiceClient notificationChannelServiceClient = await NotificationChannelServiceClient.CreateAsync(); // Initialize request argument(s) ProjectName name = new ProjectName("[PROJECT]"); NotificationChannel notificationChannel = new NotificationChannel(); // Make the request NotificationChannel response = await notificationChannelServiceClient.CreateNotificationChannelAsync(name, notificationChannel); // End snippet }
/// <summary>Snippet for CreateNotificationChannelAsync</summary> public async Task CreateNotificationChannelAsync_RequestObject() { // Snippet: CreateNotificationChannelAsync(CreateNotificationChannelRequest,CallSettings) // Create client NotificationChannelServiceClient notificationChannelServiceClient = await NotificationChannelServiceClient.CreateAsync(); // Initialize request argument(s) CreateNotificationChannelRequest request = new CreateNotificationChannelRequest { ProjectName = new ProjectName("[PROJECT]"), NotificationChannel = new NotificationChannel(), }; // Make the request NotificationChannel response = await notificationChannelServiceClient.CreateNotificationChannelAsync(request); // End snippet }