bool ComputeStartableFor( IServiceDependentObject o, StartDependencyImpact impact )
 {
     foreach( var s in o.GetIncludedServices( impact, false ) )
     {
         if( s.Disabled ) return false;
     }
     foreach( var s in o.GetExcludedServices( impact ) )
     {
         if( s.FinalConfigSolvedStatus == SolvedConfigurationStatus.Running ) return false;
     }
     return true;
 }
示例#2
0
 bool ComputeStartableFor(IServiceDependentObject o, StartDependencyImpact impact)
 {
     foreach (var s in o.GetIncludedServices(impact, false))
     {
         if (s.Disabled)
         {
             return(false);
         }
     }
     foreach (var s in o.GetExcludedServices(impact))
     {
         if (s.FinalConfigSolvedStatus == SolvedConfigurationStatus.Running)
         {
             return(false);
         }
     }
     return(true);
 }