WPF Windows アプリケーションのバックグラウンドで WCF 名前付きパイプ サービスをどのように実行しますか? WPF アプリケーション内で WCF サーバーを実行するサンプルが見つからないようです。
何か案は?
現在、Application_Startup で次のコードを使用しています。これは独自のスレッドで実行する必要がありますか?
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