Ejemplo n.º 1
0
 /// <summary>
 /// Occurs when a response returns an error code that does not fit into any other category, or an exception occurs during the response.
 /// </summary>
 /// <param name="e">Arguments for the event.</param>
 protected virtual void OnResponseError(ResponseEventArgs e)
 {
     ResponseError?.Invoke(this, e);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Occurs when a request fails because a resource was not found (status code 404).
 /// </summary>
 /// <param name="e">Arguments for the event.</param>
 protected virtual void OnResourceNotFound(ResponseEventArgs e)
 {
     ResourceNotFound?.Invoke(this, e);
 }