I've a WCF service that is accessible through 2 differents bindings, one TCP and one NamedPipe. The NamePipe one is used only locally for speed reason, and on the Service side I need to know if I've been called locally(from the same computer, through the namedpipe) to enforce some licensing constraints.
What would be the way to go? I've seen there is a OperationContext.Current
but I didn't find any information on the current binding in use, so I guess there is another way to get it(or at least know that I've been called from the same computer).