Ejemplo n.º 1
0
 /// <summary>Snippet for CreateNotificationChannel</summary>
 public void CreateNotificationChannel()
 {
     // Snippet: CreateNotificationChannel(ProjectName,NotificationChannel,CallSettings)
     // Create client
     NotificationChannelServiceClient notificationChannelServiceClient = NotificationChannelServiceClient.Create();
     // Initialize request argument(s)
     ProjectName         name = new ProjectName("[PROJECT]");
     NotificationChannel notificationChannel = new NotificationChannel();
     // Make the request
     NotificationChannel response = notificationChannelServiceClient.CreateNotificationChannel(name, notificationChannel);
     // End snippet
 }
Ejemplo n.º 2
0
 /// <summary>Snippet for CreateNotificationChannel</summary>
 public void CreateNotificationChannel_RequestObject()
 {
     // Snippet: CreateNotificationChannel(CreateNotificationChannelRequest,CallSettings)
     // Create client
     NotificationChannelServiceClient notificationChannelServiceClient = NotificationChannelServiceClient.Create();
     // Initialize request argument(s)
     CreateNotificationChannelRequest request = new CreateNotificationChannelRequest
     {
         ProjectName         = new ProjectName("[PROJECT]"),
         NotificationChannel = new NotificationChannel(),
     };
     // Make the request
     NotificationChannel response = notificationChannelServiceClient.CreateNotificationChannel(request);
     // End snippet
 }