protected override void OnError(ErrorEventArgs e) { base.OnError(e); LogRecord.Info("BasicWebSocketBehavior", string.Format("Socket Client Error:{0}.\r\nException:{1}\r\nMessage:", endPoint, e.Exception, e.Message)); }
protected override void OnClose(CloseEventArgs e) { LogRecord.Info("BasicWebSocketBehavior", string.Format("Socket Client Closed:{0}", endPoint)); base.OnClose(e); }
protected virtual void WebSocketOnError(object sender, ErrorEventArgs e) { LogRecord.Error("StompWebSocketMaketClientBase", $"{Name} has error:{e.Exception}."); }
public override void OnOpen() { base.OnOpen(); endPoint = Context.Connection.RemoteIpAddress; LogRecord.Info("BasicWebSocketBehavior", string.Format("Socket Client Connect:{0}", endPoint)); }
protected virtual void WebSocketOnClosed(object sender, CloseEventArgs e) { LogRecord.Error("StompWebSocketMaketClientBase", $"{Name} was closed."); }