Beispiel #1
0
 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));
 }
Beispiel #2
0
 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}.");
 }
Beispiel #4
0
 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.");
 }