Пример #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));
 }
Пример #2
0
 protected override void OnClose(CloseEventArgs e)
 {
     LogRecord.Info("BasicWebSocketBehavior", string.Format("Socket Client Closed:{0}", endPoint));
     base.OnClose(e);
 }
Пример #3
0
 protected virtual void WebSocketOnError(object sender, ErrorEventArgs e)
 {
     LogRecord.Error("StompWebSocketMaketClientBase", $"{Name} has error:{e.Exception}.");
 }
Пример #4
0
 public override void OnOpen()
 {
     base.OnOpen();
     endPoint = Context.Connection.RemoteIpAddress;
     LogRecord.Info("BasicWebSocketBehavior", string.Format("Socket Client Connect:{0}", endPoint));
 }
Пример #5
0
 protected virtual void WebSocketOnClosed(object sender, CloseEventArgs e)
 {
     LogRecord.Error("StompWebSocketMaketClientBase", $"{Name} was closed.");
 }