DotNetCore.WindowsService | Simple library | Configuration Management library

 by   PeterKottas C# Version: v2.0.9 License: MIT

kandi X-RAY | DotNetCore.WindowsService Summary

kandi X-RAY | DotNetCore.WindowsService Summary

DotNetCore.WindowsService is a C# library typically used in Devops, Configuration Management applications. DotNetCore.WindowsService has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Simple library that allows one to host dot net core application as windows services. Perfect solution to power micro-services architecture.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              DotNetCore.WindowsService has a low active ecosystem.
              It has 548 star(s) with 133 fork(s). There are 45 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 22 open issues and 81 have been closed. On average issues are closed in 36 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of DotNetCore.WindowsService is v2.0.9

            kandi-Quality Quality

              DotNetCore.WindowsService has 0 bugs and 0 code smells.

            kandi-Security Security

              DotNetCore.WindowsService has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              DotNetCore.WindowsService code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              DotNetCore.WindowsService is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              DotNetCore.WindowsService releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of DotNetCore.WindowsService
            Get all kandi verified functions for this library.

            DotNetCore.WindowsService Key Features

            No Key Features are available at this moment for DotNetCore.WindowsService.

            DotNetCore.WindowsService Examples and Code Snippets

            No Code Snippets are available at this moment for DotNetCore.WindowsService.

            Community Discussions

            QUESTION

            .Net core 2.0 console app as a windows service
            Asked 2018-Nov-28 at 12:57

            I am trying to set up a .Net Core Console application as a service. Using .Net standard I usually make use of Topshelf but this does not seem to support .Net Core.

            Since Topshelf is not an option what can I do to run the the .Net Core Console application as a Windows service?

            I have come access https://github.com/PeterKottas/DotNetCore.WindowsService, is this a viable substitute for a production environment?

            ...

            ANSWER

            Answered 2018-May-22 at 22:34

            At our company we use Non-Sucking Service Manager which so far I had no problems with, you might want to have a look.

            Source https://stackoverflow.com/questions/50477317

            QUESTION

            How do I use WiX to install PeterKottas.DotNetCore.WindowsService?
            Asked 2018-Mar-27 at 08:35

            I have built a windows service in DotNet Core that is installed with the Peter Kottas WindowsServer nuget (https://github.com/PeterKottas/DotNetCore.WindowsService). In order to install the service you have to publish the code, deploy it wherever, run cmd prompt with administrator rights, move directory to the deployed code and execute the following line: "MyService action:install"

            ...

            ANSWER

            Answered 2017-Aug-31 at 15:10

            You must mark your CustomActions as Execute="Deferred"

            The InstallExecuteSequence happens in two parts, the first is a planning phase where it figures out what it will be doing and the second part is running the plan script it just made in an elevated context.

            If you plan some custom actions in the InstallExecuteSequence but do not mark them deferred, they will run during the planning part of the execute sequence which is before any of the files have been installed because the InstallFiles standard action requires elevation and that happens in the 2nd part of the sequence when it runs the planned script.

            Generally you use this pattern when you need to run an elevated custom action that needs property values from your install. You schedule two custom actions, one deferred and one not, where the non-deferred action actually sets some special values to be used by the deferred action when it executes.

            I haven't used the Directory attribute for CustomActions before so you may need to re-write some of these actions to get them to work, I'm not sure.

            This other question's answer should help explain a bit how deferred custom actions get values at runtime from properties of the installer if you need to change the way your custom actions work.

            WiX - commit more than one Property to deferred Custom Action

            Source https://stackoverflow.com/questions/45984508

            QUESTION

            StructureMap .Net Core Windows Service Nested Containers
            Asked 2017-Dec-21 at 13:15

            There are lots of articles talking about how to use Structure Map with ASP.NET Core, but not very many talking about console applications or windows services. The default behavior in ASP.Net Core is that StructureMap creates a Nested Container per HTTPRequest so that a concrete class will be instantiated only once per HTTP Request.

            I am creating a .Net Core Windows Service using the PeterKottas.DotNetCore.WindowsService nuget package. I setup StructureMap using this article: https://andrewlock.net/using-dependency-injection-in-a-net-core-console-application/

            My windows service is setup on a Timer and performs an action every X number of seconds. I want each of these actions to use a nested container similar to how ASP.NET does it. In other words, I want everything created for polling pass #1 to be disposed of once that polling pass completes. When polling pass #2 starts I want all new instances of objects to be instantiated. However, within the scope of a single polling pass I only want one instance of each object to be created.

            What is the proper way to do this?

            Here is my program class

            ...

            ANSWER

            Answered 2017-Dec-21 at 13:15

            There is extension method CreateScope for IServiceProvider in Microsoft.Extensions.DependencyInjection namespace. What it does is resolve special interface (IServiceScopeFactory) from current DI container, which is responsible for creating new scopes, and creates new scope using this factory. StructureMap registers implementation of this interface, so when you call CreateScope - StructureMap will create nested container. Sample usage:

            Source https://stackoverflow.com/questions/47640296

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install DotNetCore.WindowsService

            Easiest way to start is using a brand new template. Just do:. This will add one template at the moment. Follow up with this. This will create a sample project for you. Next chapter explains its features in more details especially points 6 onwards if you used the template. Community, feel encouraged to add more templates if you find something missing/usefull. I'll be more than happy to add these. Just copy the project in https://github.com/PeterKottas/DotNetCore.WindowsService/tree/master/Source/Templates/PeterKottas.DotNetCore.WindowsService.MinimalTemplate and follow instructions in https://github.com/dotnet/templating if you need more specific behvaiour.

            Support

            Fork it!Create your feature branch: git checkout -b my-new-featureCommit your changes: git commit -am 'Add some feature'Push to the branch: git push origin my-new-featureSubmit a pull request :D
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/PeterKottas/DotNetCore.WindowsService.git

          • CLI

            gh repo clone PeterKottas/DotNetCore.WindowsService

          • sshUrl

            git@github.com:PeterKottas/DotNetCore.WindowsService.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Configuration Management Libraries

            dotfiles

            by mathiasbynens

            consul

            by hashicorp

            viper

            by spf13

            eureka

            by Netflix

            confd

            by kelseyhightower

            Try Top Libraries by PeterKottas

            react-bell-chat

            by PeterKottasTypeScript

            guestbell-forms

            by PeterKottasTypeScript

            DotNetCore.CmdArgParser

            by PeterKottasC#

            DotNetCore.EnsureRunning

            by PeterKottasC#