0
我厭倦了處理配置文件,所以我試圖在代碼中設置WCF服務。沒有配置文件的WCF服務器
到目前爲止,我有這樣的:
m_ServiceHost = New ServiceHost(Me)
m_ServiceHost.AddServiceEndpoint(
GetType(Aam.AamServiceFramework.IServiceMonitor),
New NetTcpBinding, "net.tcp://localhost:6000)
m_ServiceHost.AddServiceEndpoint(
GetType(IMetadataExchange),
New NetTcpBinding, "net.tcp://localhost:6500)
m_ServiceHost.Open()
如果我註釋掉IMetadataExchange接口這工作。我如何處理這件作品?