reduce traffic from play to feature

This commit is contained in:
Luke Pulverenti
2017-01-24 14:54:18 -05:00
parent 23070fa67c
commit b9f758e14d
9 changed files with 115 additions and 29 deletions

View File

@@ -454,7 +454,7 @@ namespace Rssdp.Infrastructure
}
if (responseMessage != null)
OnResponseReceived(responseMessage, endPoint);
OnResponseReceived(responseMessage, endPoint, receivedOnLocalIpAddress);
}
else
{
@@ -490,11 +490,14 @@ namespace Rssdp.Infrastructure
handlers(this, new RequestReceivedEventArgs(data, remoteEndPoint, receivedOnLocalIpAddress));
}
private void OnResponseReceived(HttpResponseMessage data, IpEndPointInfo endPoint)
private void OnResponseReceived(HttpResponseMessage data, IpEndPointInfo endPoint, IpAddressInfo localIpAddress)
{
var handlers = this.ResponseReceived;
if (handlers != null)
handlers(this, new ResponseReceivedEventArgs(data, endPoint));
handlers(this, new ResponseReceivedEventArgs(data, endPoint)
{
LocalIpAddress = localIpAddress
});
}
#endregion