示例#1
0
        static void Main(string[] args)
        {
            var client = new InternetClient();
            var proxy  = new InternetProxy(client);

            proxy.AddToBlacklist("www.youtube.com");
            proxy.AddToBlacklist("www.facebook.com");

            proxy.Connect("www.google.com");
            proxy.Connect("www.youtube.com");
        }
示例#2
0
 public InternetProxy(InternetClient client)
 {
     _client    = client;
     _blacklist = new List <string>();
 }