using System;
using System.Net;
using System.Net.Http;
namespace Rssdp.Infrastructure
{
///
/// Provides arguments for the event.
///
public sealed class ResponseReceivedEventArgs : EventArgs
{
public IPAddress LocalIpAddress { get; set; }
#region Fields
private readonly HttpResponseMessage _Message;
private readonly IPEndPoint _ReceivedFrom;
#endregion
#region Constructors
///
/// Full constructor.
///
public ResponseReceivedEventArgs(HttpResponseMessage message, IPEndPoint receivedFrom)
{
_Message = message;
_ReceivedFrom = receivedFrom;
}
#endregion
#region Public Properties
///
/// The that was received.
///
public HttpResponseMessage Message
{
get { return _Message; }
}
///
/// The the response came from.
///
public IPEndPoint ReceivedFrom
{
get { return _ReceivedFrom; }
}
#endregion
}
}