示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine("<Blocked site - Proxy>");
            Console.WriteLine(">Connect without proxy");
            IInternet i = new Internet();

            i.Connect("fido.com");
            i.Connect("pepe.com");
            Console.WriteLine(">Connect with proxy");
            IInternet p = new InternetProxy();

            p.Connect("fido.com");
            p.Connect("pepe.com");
        }
示例#2
0
 public InternetProxy()
 {
     internet = new Internet();
 }