using NCC.Dependency;
using System;
using System.Net.Http;
namespace NCC.RemoteRequest
{
///
/// 远程请求失败事件类
///
[SuppressSniffer]
public sealed class HttpRequestFaildedEventArgs : EventArgs
{
///
/// 构造函数
///
///
///
///
public HttpRequestFaildedEventArgs(HttpRequestMessage request, HttpResponseMessage response, Exception exception)
{
Request = request;
Response = response;
Exception = exception;
}
///
/// 请求对象
///
public HttpRequestMessage Request { get; internal set; }
///
/// 响应对象
///
public HttpResponseMessage Response { get; internal set; }
///
/// 异常对象
///
public Exception Exception { get; internal set; }
}
}