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; }
private readonly HttpResponseMessage _Message;
private readonly IPEndPoint _ReceivedFrom;
///
/// Full constructor.
///
public ResponseReceivedEventArgs(HttpResponseMessage message, IPEndPoint receivedFrom)
{
_Message = message;
_ReceivedFrom = receivedFrom;
}
///
/// The that was received.
///
public HttpResponseMessage Message
{
get { return _Message; }
}
///
/// The the response came from.
///
public IPEndPoint ReceivedFrom
{
get { return _ReceivedFrom; }
}
}
}