1

我知道您可以按照此处所述从 Windows 商店应用程序调用 Windows 服务,所以我想知道是否可以安装与 Windows 商店应用程序一起打包的自定义服务。

提前致谢。

4

1 回答 1

2

Did you mean a WCF (web) service vs. a Windows Service (the latter isn't addressed in the link you referenced). Regardless, your application will not pass certification if it requires a loopback connection to a service hosted on the same machine.

You can set this up for testing, but note:

Enable loopback for network access

Network communications using an IP loopback address cannot be used for interprocess communication (between two different apps) since this is restricted by network isolation. Network communication using an IP loopback address is allowed within an app within the same process for communication purposes.

A developer may want to use loopback for testing or debugging purposes, even though that capability will not be available for customers. For example, an app may want to download data from a web service. For development purposes, the developer wants to test the app on a single computer that is configured with the web service locally on 127.0.0.1.

Warning Loopback is only permitted for development purposes. Usage by apps installed outside of Visual Studio is not permitted.

于 2012-12-16T18:41:06.673 回答