- •Use HostBuilder to configure services, logging, and configuration
- •Centralize application startup and shutdown logic
- •Support graceful startup and disposal of services
- •Allow background services when appropriate, but do not require them
- •Keep UI lifecycle and host lifecycle coordinated
Framework guidance:
- •.NET: Microsoft.Extensions.Hosting
- •Compatible with WPF and Avalonia desktop applications
- •Do not assume ASP.NET or web hosting semantics
- •Do not introduce additional hosting abstractions unless approved