public IAsyncResult BeginReadStatus(AsyncCallback callback, object state) { CheckConnected(); var buf = new byte[4]; var wrapper = new WrapperResult(callback, state, buf); wrapper.InnerResult = stream.BeginRead(buf, 0, 4, wrapper.WrapperCallback, wrapper); return(wrapper); }
public IAsyncResult BeginReadStatus (AsyncCallback callback, object state) { CheckConnected (); var buf = new byte[4]; var wrapper = new WrapperResult (callback, state, buf); wrapper.InnerResult = stream.BeginRead (buf, 0, 4, wrapper.WrapperCallback, wrapper); return wrapper; }