Windows Service Wrapper templates

Source: Internet
Author: User

GitHub Address: Https://github.com/xl711436/Xiaolei.MockService

The corresponding logic is added to the corresponding method in the MockServiceInstance.cs, where the constructor completes the service initialization logic, and the logic in the start and stop methods is called at the start and end of the service respectively.

     Public classMockservcieinstance {/// <summary>mark of whether the service ended/// </summary>         Public BOOLExitflag {Get;Set; }  Publicmockservcieinstance () {Tracehelper.traceinfo ("Mockservcie Instance"); }         Public voidStart () {Tracehelper.traceinfo ("Mockservcie Start"); }         Public voidStop () {Tracehelper.traceinfo ("Mockservcie Stop"); }     }

Once the compilation is complete, this article, combined with the Windows service wrapper, uses the configuration of the second mode to deploy the relevant logic as a Windows service.

Windows Service Wrapper templates

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.