Skip to content

Commit

Permalink
Populate RemoteEndPoint on ServiceInstance events
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish authored and jdomnitz committed Jun 26, 2024
1 parent be60d44 commit ad8eade
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ServiceDiscovery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ private void OnAnswer(object sender, MessageEventArgs e)
var args = new ServiceInstanceShutdownEventArgs
{
ServiceInstanceName = ptr.DomainName,
Message = msg
Message = msg,
RemoteEndPoint = e.RemoteEndPoint
};
ServiceInstanceShutdown?.Invoke(this, args);
}
Expand All @@ -400,7 +401,8 @@ private void OnAnswer(object sender, MessageEventArgs e)
var args = new ServiceInstanceDiscoveryEventArgs
{
ServiceInstanceName = ptr.DomainName,
Message = msg
Message = msg,
RemoteEndPoint = e.RemoteEndPoint
};
ServiceInstanceDiscovered?.Invoke(this, args);
}
Expand Down

0 comments on commit ad8eade

Please sign in to comment.