Ejemplo n.º 1
0
 /// <summary>
 /// Event invocator for the <see cref="Error"/> event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnError(WebSocketError e)
 {
     Log.Error(e.Exception, $"WebSocketClientWrapper.OnError(): (IsOpen:{IsOpen}, State:{_client.State}): {_url}: {e.Message}");
     Error?.Invoke(this, e);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles websocket errors
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void OnError(object sender, WebSocketError e)
 {
     Log.Error(e.Exception, "WebSocketsBrokerage Web Exception:  ");
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Event invocator for the <see cref="Error"/> event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnError(WebSocketError e)
 {
     Log.Error(e.Exception, $"WebSocketWrapper.OnError(): (IsOpen:{IsOpen}, ReadyState:{_wrapped.ReadyState}): {e.Message}");
     Error?.Invoke(this, e);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Event invocator for the <see cref="Error"/> event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnError(WebSocketError e)
 {
     Log.Error(e.Exception, "WebSocketWrapper.OnError(): " + e.Message);
     Error?.Invoke(this, e);
 }