Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 584 Bytes

File metadata and controls

9 lines (5 loc) · 584 Bytes

GenericHostBuilderExample

Autofac under the generic host, without ASP.NET Core in the picture. This is the shape to copy for a worker service or a console application that wants hosted services and configuration.

Packages: Autofac.Extensions.DependencyInjection

Run dotnet run --project src/GenericHostBuilderExample. It starts a hosted service and runs until you press Ctrl+C.

See .NET Core for the documentation this example follows.