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