diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-07-07 21:03:26 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-07-25 00:15:06 +0200 |
| commit | ddd1a282ea6398ee26d74321338d0445d0a0c796 (patch) | |
| tree | 5718f5f39f84941119d0fed350c33299d2adf282 /RSSDP/RequestReceivedEventArgs.cs | |
| parent | e8028de4d7cf1372dad54a7d871e853ac737d023 (diff) | |
Remove IpAddressInfo and IpEndPointInfo classes
Diffstat (limited to 'RSSDP/RequestReceivedEventArgs.cs')
| -rw-r--r-- | RSSDP/RequestReceivedEventArgs.cs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/RSSDP/RequestReceivedEventArgs.cs b/RSSDP/RequestReceivedEventArgs.cs index fd3cd9e3a..b753950f0 100644 --- a/RSSDP/RequestReceivedEventArgs.cs +++ b/RSSDP/RequestReceivedEventArgs.cs @@ -1,10 +1,6 @@ using System; -using System.Collections.Generic; using System.Net; using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using MediaBrowser.Model.Net; namespace Rssdp.Infrastructure { @@ -16,18 +12,18 @@ namespace Rssdp.Infrastructure #region Fields private readonly HttpRequestMessage _Message; - private readonly IpEndPointInfo _ReceivedFrom; + private readonly IPEndPoint _ReceivedFrom; #endregion - public IpAddressInfo LocalIpAddress { get; private set; } + public IPAddress LocalIpAddress { get; private set; } #region Constructors /// <summary> /// Full constructor. /// </summary> - public RequestReceivedEventArgs(HttpRequestMessage message, IpEndPointInfo receivedFrom, IpAddressInfo localIpAddress) + public RequestReceivedEventArgs(HttpRequestMessage message, IPEndPoint receivedFrom, IPAddress localIpAddress) { _Message = message; _ReceivedFrom = receivedFrom; @@ -49,7 +45,7 @@ namespace Rssdp.Infrastructure /// <summary> /// The <see cref="UdpEndPoint"/> the request came from. /// </summary> - public IpEndPointInfo ReceivedFrom + public IPEndPoint ReceivedFrom { get { return _ReceivedFrom; } } |
