Beispiel #1
0
 Task ISubSystem.Stop()
 {
     return(Task.Factory.StartNew(() => {
         if (_runtime != null)
         {
             _runtime.SafeDispose();
         }
         if (_application != null)
         {
             _application.Teardown();
         }
         if (_hosting != null)
         {
             _hosting.Shutdown();
         }
     }));
 }