Skip to content

xakepbean/Xakep.Hosting.WindowsServices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use

        public static void Main(string[] args)
        {
            ServiceUtils.Run(args, (arg) => BuildWebHost(arg).Run(), Service =>
               {
                   Service.ServiceName = "netcorehostservice";
                   Service.DisplayName = "sample netcore host service";
                   Service.Description = "sample netcore host service Description";
                   Service.StartType = StartType.Auto;
                   Service.Account = AccountType.LocalSystem;
               });
        }
        public static IWebHost BuildWebHost(string[] args) =>
           WebHost.CreateDefaultBuilder(args)
               .UseStartup<Startup>()
               .Build();

Optional parameters

dotnet xxx.dll Start start the service

dotnet xxx.dll Stop stop the service

dotnet xxx.dll Reset reset the service

dotnet xxx.dll Install install the service

dotnet xxx.dll UnInstall uninstall the service

No parameters

execute IWebHost.Run();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages