コード例 #1
0
ファイル: Program.cs プロジェクト: yanxingtan93/ICT2106
        static void Main(string[] args)
        {
            // create some e-mail addresses to receive notifications
            EmailService email1 = new EmailService("*****@*****.**");
            EmailService email2 = new EmailService("*****@*****.**");

            // create a notifier and register the notification services
            ConsoleReader reader = new ConsoleReader();

            reader.Attach(email1);
            reader.Attach(email2);

            // go!
            reader.ReadLines();
        }