public static void HandleTest(StateObject state) { Console.WriteLine("HandleTest has called"); state.WorkSocket.Send(BitConverter.GetBytes(1)); state.WorkSocket.Send(Encoding.UTF8.GetBytes("Server have received test data")); state.WorkSocket.Disconnect(true); return; }
public void Call(StateObject state) { if (!handlers.ContainsKey(state.CommandType)) { DefaultHandle(state); } handlers[state.CommandType](state); }
public static void DefaultHandle(StateObject state) { }
public static void HandledSendHashData(StateObject state) { Console.WriteLine("HandledReset has called"); }