public void OnPause() { SocketTask task = new SocketTask(ThreadType.BackGround); task.AppendCmdParam(InternalRequestType.HOLDING_ON); HandleInternalTask(task); }
public void Dispose() { SocketTask task = new SocketTask(ThreadType.BackGround); task.AppendCmdParam(InternalRequestType.SHUT_DOWN); HandleInternalTask(task); }
public void CloseWorldChatSocket() { SocketTask task = new SocketTask(ThreadType.MainThread, TaskResponse.Default_Response); task.AppendCmdParam(InternalRequestType.SHUT_DOWN); task.DispatchToRealHandler(); }
private void SendAllenTcpClose() { SocketTask task = new SocketTask(ThreadType.MainThread, TaskResponse.Default_Response); task.AppendCmdParam(InternalRequestType.SHUT_DOWN); task.DispatchToRealHandler(); }
void ICore.Dispose() { if (httpEngine != null) { HttpTask shutdownTask = new HttpTask(ThreadType.BackGround, TaskResponse.Default_Response); shutdownTask.AppendCmdParam(InternalRequestType.SHUT_DOWN); httpEngine.sendHttpTask(shutdownTask); } // Socket is still empty if (SockEngine != null) { SocketTask shutdownTask = new SocketTask(ThreadType.BackGround, TaskResponse.Default_Response); shutdownTask.AppendCmdParam(InternalRequestType.SHUT_DOWN); SockEngine.sendSocketTask(shutdownTask); } }