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; }
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); }