我已经在我的应用程序中导入了很多 wcf 服务。例如
<endpoint address="http://localhost:1044/PersonSearchWebService.svc" behaviorConfiguration="ClientBehavior"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IPersonSearchWebService"
contract="WSPersonSearch.IPersonSearchWebService" name="BasicHttpBinding_IPersonSearchWebService" />
<endpoint address="http://localhost:1044/TransferService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ITransferService"
contract="WSFileTransfer.ITransferService" name="BasicHttpBinding_ITransferService" />
<endpoint address="http://localhost:1044/ScannedFileSearchWebService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IScannedFileSearchWebService"
contract="WSScannedFileSearch.IScannedFileSearchWebService"
name="BasicHttpBinding_IScannedFileSearchWebService" />
它们都共享相同的服务器地址。我可以将它们提取到一个变量中,因此当我移动到实时服务器时,我只需要在一个空间中修改配置吗?
谢谢