通过Microsoft.Extensions.Hosting来创建托管的后台运行服务。