private void ConnectCallback(object sender, SocketConnectEventArgs e) { SockMgrConnectStateObject state = (SockMgrConnectStateObject)e.State.externalCallbackState; SockMgrConnectEventArgs arg = new SockMgrConnectEventArgs(this, e.State, state.externalCallbackState); SockMgrConnectEvent?.Invoke(this, arg); if (state.externalCallback != null) { state.externalCallback(this, arg); } _responser.OnSockMgrConnect(this, arg); }
// return private void OnSocketConnect(object sender, SockMgrConnectEventArgs e) { SockMgrConnectEvent?.Invoke(sender, e); }
private void OnSockMgrConnect(object sender, SockMgrConnectEventArgs e) { RegisterNewSockMgr(e.Handler); SockMgrConnectEvent?.Invoke(sender, e); }