private void create(UserToken token, string model) { ExecutorPool.Instance.execute( delegate() { write(token, GameProtocol.UserProtocol.CREATE_SERS, userBiz.Create(token, model)); } ); }
public void creat(UserToken token, string message) { //跳转至单线程执行 ExcutorPool.Instance.excute(delegate() { bool result = userBiz.Create(token, message); //Console.WriteLine(result); write(token, UserProtocol.CREAT_SRES, result); }); }