Ejemplo n.º 1
0
        public static ServiceState GetEffectiveState(ServerComponentEnum serverComponent)
        {
            ServiceState defaultState = ServerComponentStateManager.GetDefaultState(serverComponent);

            return(ServerComponentStateManager.GetEffectiveState(serverComponent, defaultState != ServiceState.Inactive));
        }
Ejemplo n.º 2
0
        public static bool IsOnline(ServerComponentEnum serverComponent, bool onlineByDefault)
        {
            ServiceState effectiveState = ServerComponentStateManager.GetEffectiveState(serverComponent, onlineByDefault);

            return(effectiveState == ServiceState.Active || effectiveState == ServiceState.Draining);
        }