https://github.com/farukterzioglu/extendedworker
Creates a Worker Project (.Net Core 3.0) with additional features.
https://github.com/farukterzioglu/extendedworker
background-service dotnet netcore3 worker-service
Last synced: 5 months ago
JSON representation
Creates a Worker Project (.Net Core 3.0) with additional features.
- Host: GitHub
- URL: https://github.com/farukterzioglu/extendedworker
- Owner: farukterzioglu
- Created: 2019-10-13T14:30:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-13T15:43:28.000Z (about 6 years ago)
- Last Synced: 2025-07-01T16:55:39.949Z (6 months ago)
- Topics: background-service, dotnet, netcore3, worker-service
- Language: C#
- Homepage: https://medium.com/@farukterzioglu/net-corea-yeni-proje-tipi-eklemek-worker-service-extended-fe56685a992
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Creates a Worker Project (.Net Core 3.0) with additional features.
Some required changes after creating a new worker project are pre-created with this project template.
Configured for logging with Serilog.
### Included Project Types
Worker Service (Extended)
Worker Service (Extended) Class
### Usage
```
dotnet new workerextended -n NewWorkerApp
cd NewWorkerApp/
dotnet run
// Hit 'CTRL+C' to exit
dotnet new workerextended-service -n Worker2
// Update Program.cs ->
...
.ConfigureServices((hostContext, services) =>
{
...
services.AddHostedService();
});
dotnet run
// Hit 'CTRL+C' to exit
```
### Build
Install "Worker Service (Extended)" from source code
```
dotnet new -i ./Company.Application1
```
Install "Worker Service (Extended) Class" from source code
```
dotnet new -i ./extendedWorkerClass
```
Create Nuget Package
```
dotnet pack
// To install from .nupkg file
dotnet new -i bin/Debug/Worker.Extended.1.0.0.nupkg
```
References:
https://github.com/aspnet/AspNetCore/tree/master/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp
https://github.com/dotnet/templating/wiki/%22Runnable-Project%22-Templates
https://devblogs.microsoft.com/dotnet/how-to-create-your-own-templates-for-dotnet-new/
https://github.com/sayedihashimi/dotnet-new-samples
https://github.com/dotnet/dotnet-template-samples