- Notifications
You must be signed in to change notification settings - Fork3
ITTranslate/WorkerServiceAsWindowsService
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
基于WorkerServiceWithSerilog 项目修改。
git clone git@github.com:ITTranslate/WorkerServiceWithSerilog.git
dotnet add package Microsoft.Extensions.Hosting.WindowsServices
修改的文件包含:Program.cs,Worker.cs
dotnet build
dotnet publish -c Release -r win-x64 -o c:\test\workerpub
使用 sc.exe 实用工具安装和管理服务。
sc create MyService binPath= C:\test\workerpub\MyService.exe start= auto displayname="技术译站的测试服务"sc description MyService"这是一个由 Worker Service 实现的测试服务。"sc start MyServicesc stop MyServicesc delete MyService
About
Worker Service As Windows Service Demo
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published