/// <summary> /// Raises the <see cref="E:ErrorEvent" /> event. /// </summary> /// <param name="e">The <see cref="ServerSentErrorEventArgs"/> instance containing the event data.</param> protected virtual void OnErrorEvent(ServerSentErrorEventArgs e) { Trace.TraceInformation("Raising OnErrorEvent ({0})", e.Exception.Message); var handler = Error; handler?.Invoke(this, e); }
private void Error(object sender, ServerSentErrorEventArgs e) => WriteLine("Error : " + e.Exception.ToString());