List Synchronization Service Summary

xiaoxiao2021-03-30  212

Although the business logic is not very complicated, it is very many things involved!

This project involves Email, FTP, WebService, Windows Service, Log Event, XML, but through this project practice, I also learned a lot of things, haha, although it is very expensive when I do it.

Quick easy mail, grace used by email, and use it together.

FTP uses a class that is stamped. Socket is connected to FTP. It is not bad. People who write this class can be set, 8 passing there is no way to get file content directly from FTP, only one FTP The file saves the method of this, there is some trouble with the actual use.

WebService, if you need to set the address of the WebService, remember him change to dynamic, then find the constructor in the resource file, there is a value to the WebService payment to select Dynamic. Also learn to make more understanding of Weblaunch, which is unfamiliar with him.

Windows Service passed this time, I know much about this thing, especially how to pack installation, grace

Log Event, this has to be mentioned, with log4j, is really good, especially for projects such as Windows Service, is a good thing for monitoring programs, look back, the logs.cs code is put on, for later use

This project is much longer than the plan for a lot, and the reasons have the following points: 1. Starting to estimate the technical difficulty of the project, look at the logic process, feel very simple. 2. When I started doing, I thought Xiao Zhao will pick up the big Liang. After all, he has been doing for a while, how can I have something, I have seen what he did, but also to write 3. Rewriting for the category of FTP, has used a lot of time. Is it still not very successful, how to transform the stream into an array? This is the key to rewritten. From Socket to get a file download flow, you want to have memory in the form of Byte [], but unfortunately don't know how to get it. The final solution is to create a temporary file on the local disk, and then read to memory 4. I don't know about WebLaunch's WebService, this is a big problem encountered in the project, ~~~ 5. I don't know if I want to write logs. This is a big trouble. In order to monitor the operation of the program, I have to write a lot of logs. I have to pay attention to it next time.

Basically, I have to summarize so much. Anyway, I will encounter such similar projects next time. It is easy to get started.

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

New Post(0)