网络服务,单击一次.这个解决方案好吗? [英] webservice, clickonce. Is this solution good?

查看:57
本文介绍了网络服务,单击一次.这个解决方案好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

VS 2008 SP1

我已经开发了Windows应用程序,并使用clickonce将应用程序发布到客户站点.一切正常.

但是,客户已决定他们想要一个配置文件 也随他们可以修改的应用程序一起发布 他们的管理员.

该配置使管理员可以更改 应用.即更改IP地址,用户名,密码(加密)等. 告诉他们,一旦应用程序发布,您将无法 修改文件,因为它们会损坏它们.

因此,我想到了一个解决方案,但不确定是否理想.

将服务器上的配置与发布分开 文件.管理员将使用的网络应用将进行修改 这个.

将使用网络服务,因此当客户端的应用程序启动时,它将 通过Web服务从配置文件中获取更改.

有谁能比这做得更好?

非常感谢您的任何建议,

Steve

Hello,

VS 2008 SP1

I have developed a windows application and used clickonce to publish the app to the customers site. Everything ok there.

However, the customer has decided that they want to have a config file that is also published with the application that they can modify by their admin staff.

The config is to enable the admin staff to change some settings on the application. i.e. change IP address, username, pwd (encrypted) etc. I have told them that once the application has been published you cannot modify the files, as it will corrupt them.

So I have thought of a solution, which I am not sure if it is ideal.

Having the config on the server that is separate from the publish files. The web app which will be used by the admin staff will modify this.

A web service will be used so when the client's app starts up, it will get the changes from the config file through the web service.

Can anyone see anything better than doing this?

Many thanks for any suggestions,

Steve

推荐答案

您好,
您可以为服务器上的文件维护DirtyFlag或版本号.每次更改服务器上的文件时都可以设置此值.
每次客户端应用程序启动时,与其每次都直接获取文件,不如首先检查此DirtyFlag或Version值,如果需要,则仅检查该值这个文件.这将在以下方面为您提供帮助:

1.减少不必要的网络流量.
2.加快应用程序的启动过程,因为每次客户端不需要从服务器获取文件时.

Hi,
You can maintain a DirtyFlag or version number for the file on server. This value you can set each time the file on the server is changed.
Anytime when the client application starts up, instead of directly fetching the file each and every time, first check this DirtyFlag or Version value and if required then only fetch this file. This would help you in the following :

    1.    Decreasing unnecessary network traffic.
    2.    Speeding up starting procedure of the application as each time client no need to fetch the file from  the server.


这篇关于网络服务,单击一次.这个解决方案好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆