I have two different Interface service that I'm using
1. IService1
2. IService2
I define two files
1. IService1.cs => that hold the Interface of IService1
2. IService2.cs => that hold the Interface of IService2
I also define two different .cvs
1. IService1.cvs=> that hold the Interface of IService1
2. IService2.cvs=> that hold the Interface of IService2
可以有這個文件結構或更好的將所有契約接口放在一個文件中並有一個.cvs文件嗎?在不同的.svc文件中定義不同的接口?
.svc文件 - 謝謝。 – Yanshof 2011-05-02 08:55:15
可以說,我想公開IService1 basicHttpBinding和IService2只有NamedPipeBinding - 我需要定義它們都在同一個服務或需要在配置文件中定義兩個服務? – Yanshof 2011-05-02 09:02:17
我可能會公開每個單獨的.svc,因爲WCF中的NamedPipes不能從其他機器訪問,並且因爲端點不應該在暴露給遠程客戶端的WSDL中。 – 2011-05-02 09:08:10