How would you start a WCF service named pipe against the background of a Windows WPF application? I can't seem to find WCF server startup patterns in a WPF application.
Any ideas?
I am currently using the following code in Application_Startup. Do I need to run my own thread with it?
Using Host As ServiceModel.ServiceHost = New ServiceModel.ServiceHost(GetType(Service), New Uri(("net.pipe://localhost")))
'
Host.AddServiceEndpoint(GetType(IService), New ServiceModel.NetNamedPipeBinding, "Test")
Host.Open()
'
End Using
source
share