WCF makes it easy to call services synchronously or asynchronously, regardless of how the service is implemented. To accommodate clients using
ChannelFactory, services can even define separate sync/async contract interfaces. For example:
This allows the client to reference either contract version, and WCF translates the actual API calls automatically.
One drawback to providing both contract versions is that they must be kept in-sync. If you forget to update one, the client may receive a contract mismatch exception at runtime.
Is there an easy way to unit test the interfaces to ensure they match from a WCF metadata perspective?
c# .net wcf unit-testing asynchronous