Why does SvcUtil create a channel interface that derives from IClientChannel

When you create code from a WSDL file using SvcUtil.exe, among many types an interface is created that comes from both the service interface and IClientChannel.

If, for example, the created service interface is called IMyService, it also creates this interface:

public interface IMyServiceChannel : 
    IMyService, System.ServiceModel.IClientChannel

Why does he define this interface? As far as I can tell, it is not referenced anywhere in the automatically generated code.

+3
source share
2 answers

[UPDATE]

MSDN ( ). , ChannelFactory.

, intelisense WCF .

, - MS - ...

+4

wsdl.exe? "svcutil/?" /tcv ( clr).

0

Source: https://habr.com/ru/post/1730770/


All Articles