// 消息接收nc.dispatcher.onMessageReceived+= e =>{Console.WriteLine("onMessageReceived: ", e);};// 消息删除nc.dispatcher.onMessageDeleted+= e =>{Console.WriteLine("onMessageDeleted: ", e);};// 错误消息nc.dispatcher.onErrorReceived+= e =>{Console.WriteLine("[CloudChatSample] onErrorReceived: ", e);};// 连接成功nc.dispatcher.onConnected+= e =>{Console.WriteLine("[CloudChatSample] Connected to server with id: {0} ", e);};// 连接结束nc.dispatcher.onDisconnected+= e =>{Console.WriteLine("Disconnected");};// 开始输入时nc.dispatcher.onStartTyping+= e =>{Console.WriteLine("onStartTyping: ", e);};// 结束输入时nc.dispatcher.onStopTyping+= e =>{Console.WriteLine("onStopTyping: ", e);};// 用户在频道中订阅时nc.dispatcher.onMemberAdded+= e =>{Console.WriteLine("onMemberAdded: ", e);};// 用户在频道中取消订阅时nc.dispatcher.onMemberLeft+= e =>{Console.WriteLine("[CloudChatSample] onMemberLeft: ", e);};// 用户在频道中被禁言时nc.dispatcher.onMemberBanned+= e =>{Console.WriteLine("[CloudChatSample] onMemberBanned: ", e);};// 用户在频道中退出时nc.dispatcher.onMemberDeleted+= e =>{Console.WriteLine("[CloudChatSample] onMemberDeleted: ", e);};