Intelligent client-related Application Block structure analysis (2)

xiaoxiao2021-03-06  42

3, Updater Application Block: This module is primarily responsible for the automatic update problem of the program. In the case of the fat client mode, the deployment of the program and the update is a very troublesome thing, especially when there is hundreds of clients, we have to handle one, so we will waste us a lot of time. And energy, and it is very easy to make mistakes. Updater Application Block provides us with a good solution. When the client starts, the program will check the version of the file that needs to be updated. If the server version is greater than the current client version, it will prompt users. Do you want to update the program, if you confirm, you will automatically get the latest client program from the server. 4, Configure Application Block: Inside the APPLICATION block automatically updated, everyone will definitely ask the program how the current client file is versioned and the file is updated. This time, we used the Configure Application Block, this The module provides us with a series of processing for XML files. The format of these XML files has some basic definitions, where we can set our configuration information, so we can get these files to get the current client. Some information. 5, Caching Application Block: In this application block, Microsoft encapsulates us to recommend the cache mechanism. Since we now use smart clients to develop distributed programs, cache data is very important to programs. There are two main types of caching mechanisms, one is a short-term data cache, that is, to store data in memory; another is a long-term data cache, mostly to talk about data in our hard drive. How to cache these two mechanisms, we need to consider a lot during the process of programming, because if you are stored in memory, the speed is fast, but it is easy to lose, and the data stored in the hard disk is not easily lost, but there is a slow speed. The problem, how to trade between the two is a more difficult problem. This issue is in this Application Block, Microsoft basically puts some principles. 6, Logging Application Block: In our program, in order to avoid illegal users, or how to record users, we must record the operations of the program, and the records are generally stored. In the file, this file is generally referred to as a log. In the intelligent client, a lot of operations are updated, and the version check, etc. will automatically generate a very detailed log file. This log file is XML format, that is, we can read and write, analyze, and can easily import it into the database. 7. Security Application Block: Since the intelligent collaborative office wants to implement, inevitably involves data transmission on the network. For this, the users are generally worried about security issues. Once some sensitive data or need confidential data is lost online, the consequences are unbearable. To solve this problem, Microsoft provides us with a variety of security solutions in Security Application Block, including how to authorize users, encrypt files, how to verify the legality of the user, and more.

转载请注明原文地址:https://www.9cbs.com/read-58240.html

New Post(0)