protected override Task ExecuteAsync(CancellationToken stoppingToken) { subscribeService.Register(queueConfig.SubscribeAssemblies); stoppingToken.Register(() => { subscribeService.StopSubscribe(); }); subscribeService.StartSubscribe(type => { return(serviceProvider.GetService(type)); }); return(Task.CompletedTask); }