Exemple #1
0
 public void Encode(VideoEncoder video)
 {
     foreach (var channel in _notificationChannels)
     {
         channel.Send(new Message());
     }
 }
Exemple #2
0
        static void Main(string[] args)
        {
            var encoder = new VideoEncoder();

            encoder.RegisterNotificationChannel(new MailNotificationChannel());
            encoder.RegisterNotificationChannel(new SmsNotificationChannel());
            encoder.Encode(new Video());
        }