예제 #1
0
        public IAsyncResult BeginGetLineControl(LineControl lc, AsyncCallback cb, object s)
        {
            LengthyGetLineControlAsyncStub stub = new LengthyGetLineControlAsyncStub(LengthyGetLineControl);
            GetLineControlState            glcs = new GetLineControlState();

            glcs.previousstate = s;
            glcs.stub          = stub;
            return(stub.BeginInvoke(lc, cb, glcs));
        }
예제 #2
0
        public LineControl EndGetLineControl(IAsyncResult call)
        {
            GetLineControlState glcs = (GetLineControlState)call.AsyncState;

            return(glcs.stub.EndInvoke(call));
        }
예제 #3
0
 public IAsyncResult BeginGetLineControl(LineControl lc, AsyncCallback cb, object s)
 {
     LengthyGetLineControlAsyncStub stub = new LengthyGetLineControlAsyncStub(LengthyGetLineControl);
     GetLineControlState glcs = new GetLineControlState();
     glcs.previousstate = s;
     glcs.stub = stub;
     return stub.BeginInvoke(lc, cb, glcs);
 }