コード例 #1
0
        static void Main(string[] args)
        {
            Connector1   connector  = new Connector1();
            IAsyncResult result     = connector.asyncFetch("google.ro", 80, "/");
            Connector2   connector2 = new Connector2();

            connector2.asyncFetch("google.ro", 80, "/");
            while (!result.IsCompleted)
            {
                Thread.Sleep(1000);
            }
            Thread.Sleep(1000000);
        }
コード例 #2
0
 public Uploader2(Connector2 connector)
 {
     _connector = connector;
 }