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)); }
public LineControl EndGetLineControl(IAsyncResult call) { GetLineControlState glcs = (GetLineControlState)call.AsyncState; return(glcs.stub.EndInvoke(call)); }
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); }