private void _socket_OnDisconnected(object sender, Peach.EventArgs.DisconnectedEventArgs <AmpMessage> e) { #pragma warning disable CS4014 // 由于此调用不会等待,因此在调用完成前将继续执行当前方法 CloseTransportAsync(ConvertIPV4EndPoint(e.Context.RemoteEndPoint)).AnyContext(); #pragma warning restore CS4014 // 由于此调用不会等待,因此在调用完成前将继续执行当前方法 this._logger.LogInformation("-------------------client:connection is disconnected---------------------"); this._logger.LogInformation(e.Context.Id); }
private static void Client_OnDisconnected(object sender, Peach.EventArgs.DisconnectedEventArgs <CommandLineMessage> e) { Console.WriteLine("server is disconnected"); }
private void _socket_OnDisconnected(object sender, Peach.EventArgs.DisconnectedEventArgs <AmpMessage> e) { }