Git Product home page Git Product logo

backgroundworker's Introduction

BackgroundWorker

Windows后台工作服务框架

Infrastructure

基础后台工作服务,各种帮助类

Infrastructure.QueueWorker

基于持久化队列的后台工作服务框架

 Helper.RunAsBackgroundService(
                configKeyAndFieldNames: new Dictionary<string, string>
                {
                    {"CallbackUrl",nameof(_callbackUrl)},
                    {"QueueRootFolder",nameof(_queueRootFolder)}
                },
                userRights: Helper.UserRights.RUN_AS_ADMIN,
                updateInterval: 60000,
                tryBlock: () =>
                {
                    var worker = new DequeueWorker(
                            queueRootFolder: _queueRootFolder,
                            queueName: _queueName,
                            dequeueAction: (convertSetting) =>
                            {
                               //DO some work...
                            },
                            loopInterval: 1000
                         );
                    WorkerFactory.AddWorker(worker);
                    worker.Start();
                }

队列设计

InstallGuideGen

  • 该页面根据应用的config文件自动生成,默认值为config文件中的值,标题和下拉选项来自该config上方注释,如:
    <!--读卡驱动模式[Service,Proxy,Remote]-->
    <add key="CardReaderMode" value="Service" />
    会生成标题为"读卡驱动模式",默认值为"Service",带有"Service,Proxy,Remote"三个选项的下拉列表
  • 参数填好后点击生成链接,复制到IE浏览器安装 其他浏览器需安装插件
  • 如果以上配置有变动,在服务器上停止程序,然后用新的安装链接运行一次即可
  • backgroundworker's People

    Contributors

    machinechina avatar

    Stargazers

     avatar  avatar

    Watchers

    James Cloos avatar  avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.