private IAsyncResult BeginSendTask(WrappedBeginSendParameters obj, AsyncCallback callback, Object state) { //RU: упаковали данные в собственный AsyncResult //EN: wrapped data in our own AsyncResult AsyncResultSendMessage ar = new AsyncResultSendMessage(obj.ReliableUdpMessage, obj.RemoteEndPoint, obj.Token, callback, state, this); ThreadPool.QueueUserWorkItem(StartTransmissionHelper, ar); return(ar); }
private IAsyncResult BeginSendTask(WrappedBeginSendParameters obj, AsyncCallback callback, Object state) { //RU: упаковали данные в собственный AsyncResult //EN: wrapped data in our own AsyncResult AsyncResultSendMessage ar = new AsyncResultSendMessage( obj.ReliableUdpMessage, obj.RemoteEndPoint,obj.Token, callback, state, this ); ThreadPool.QueueUserWorkItem( StartTransmissionHelper, ar ); return ar; }