I have a WCF service communicating with a client through TCP. Do I need to collect information about the current connection in the service method? For example, the endpoint that the current user is using?
You can use the OperationContext.Current property to get all the useful information about the method you are currently in.
OperationContext.Current
In your specific example:
OperationContext.Current.EndpointDispatcher.EndpointAddress
Source: https://habr.com/ru/post/948778/More articles:cross-browser 'getElementsByTagName' with namespace from responseXML - javascriptEntity Framework 5 - Update DbContext immediately after saving changes - entity-framework-5GetElementsByTagName problem in chrome and safari - javascriptHow to change browser API form - djangoCSS absolute div inside relative parent for Firefox - cssWCF 3.5 find the URL that the client used to access the service (server side) - wcfdjango request.user.is_superuser does not work - djangoSQL Server discards and recreates table indexes - sqlI / O error while reading directory - curlCast list to AnonymousTypes list - c #All Articles