EvgenyK
(Evgeny Karpov)
January 3, 2019, 7:05am
5
have you used OnGetDispatchInfo event as described at Receiving information about client on server-side snippet or just implemented GetDispatchInfo
method?
Marcos_Cunha_Lima:
Moreover, even if it’s called, I suppose that it will be called by all threads so it is safe to save the IP address in a property and get access to it in the method afterwards, eg, is the real method executed just after this method in order to get the right client address?
you are right. OnGetDispatchInfo
event is fired before actual method call so you can even raise exception in this event for preventing execution of service method.