Is there a way to get a contract from a running service programatically? I want to compare the contract of a running service from a referenced contract in the client side.
For example I have two instances of Service1 running on different machines that has different implementations. They both have a contract named IService1 but different implementation. I have a Console1 that has a reference to IService1(First instance). Console1 has a collection of 2 endpoint address. Console1 wants to check which of the running services is the correct service for the contract(First instance) he is using.
What I want to do here is to programatically get the contract from the service using the address and compare it to the referenced contract that I have.