Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var video = new Video()
            {
                Title = "Video1"
            };
            var videoEncoder   = new VideoEncoder();
            var mailService    = new MailService();
            var messageService = new MessageService();

            videoEncoder.VideoEncoded += mailService.OnVideoEncoded;
            videoEncoder.VideoEncoded += messageService.OnVideoEncoded;
            videoEncoder.VideoSent    += messageService.OnVideoSent;

            videoEncoder.Encode(video);
            videoEncoder.Send(video);
        }