public Task StopAsync(CancellationToken cancellationToken) { if (StarterAttribute.IsEnabled <EnableRunnerAttribute>()) { var host = ObjectService.GetObject <ServiceRunnerHost>(); host.Stop(); } return(Task.CompletedTask); }
//处理StarterAttribute private void ObjectServiceOnSetupCompleted(IObjectServiceContext ctx) { StarterAttribute.Init(ctx.Items); }