Exemple #1
0
 internal void InitializeFinalStartableStatus()
 {
     if (!Disabled)
     {
         _finalConfigStartableStatus = new FinalConfigStartableStatus(this);
     }
 }
Exemple #2
0
 internal void InitializeFinalStartableStatus()
 {
     if (!Disabled)
     {
         _finalConfigStartableStatus = new FinalConfigStartableStatus(GetUsefulPropagationInfo());
     }
 }
Exemple #3
0
        internal void UpdateFrom(SolvedConfigurationStatus finalConfigStatus, FinalConfigStartableStatus s, DelayedPropertyNotification notifier)
        {
            AllFlags newOne = new AllFlags(finalConfigStatus, s);

            notifier.Update(this, ref _flags.CanStop, newOne.CanStop, () => CanStop);
            notifier.Update(this, ref _flags.CanStart, newOne.CanStart, () => CanStart);
            notifier.Update(this, ref _flags.CanStartWithFullStart, newOne.CanStartWithFullStart, () => CanStartWithFullStart);
            notifier.Update(this, ref _flags.CanStartWithStartRecommended, newOne.CanStartWithStartRecommended, () => CanStartWithStartRecommended);
            notifier.Update(this, ref _flags.CanStartWithStopOptionalAndRunnable, newOne.CanStartWithStopOptionalAndRunnable, () => CanStartWithStopOptionalAndRunnable);
            notifier.Update(this, ref _flags.CanStartWithFullStop, newOne.CanStartWithFullStop, () => CanStartWithFullStop);
        }
Exemple #4
0
 public AllFlags(SolvedConfigurationStatus finalConfigStatus, FinalConfigStartableStatus s)
 {
     Debug.Assert((s == null) == (finalConfigStatus == SolvedConfigurationStatus.Disabled), "!Disabled <==> StartableStatus != null");
     CanStop = finalConfigStatus != SolvedConfigurationStatus.Running;
     if (s != null)
     {
         CanStart = true;
         CanStartWithFullStart               = s.CallableWithFullStart;
         CanStartWithStartRecommended        = s.CallableWithStartRecommended;
         CanStartWithStopOptionalAndRunnable = s.CallableWithStopOptionalAndRunnable;
         CanStartWithFullStop = s.CanStartWithFullStop;
     }
     else
     {
         CanStart = CanStartWithFullStart = CanStartWithStartRecommended = CanStartWithStopOptionalAndRunnable = CanStartWithFullStop = false;
     }
 }
 internal void UpdateFrom( SolvedConfigurationStatus finalConfigStatus, FinalConfigStartableStatus s, DelayedPropertyNotification notifier )
 {
     AllFlags newOne = new AllFlags( finalConfigStatus, s );
     notifier.Update( this, ref _flags.CanStop, newOne.CanStop, () => CanStop );
     notifier.Update( this, ref _flags.CanStart, newOne.CanStart, () => CanStart );
     notifier.Update( this, ref _flags.CanStartWithFullStart, newOne.CanStartWithFullStart, () => CanStartWithFullStart );
     notifier.Update( this, ref _flags.CanStartWithStartRecommended, newOne.CanStartWithStartRecommended, () => CanStartWithStartRecommended );
     notifier.Update( this, ref _flags.CanStartWithStopOptionalAndRunnable, newOne.CanStartWithStopOptionalAndRunnable, () => CanStartWithStopOptionalAndRunnable );
     notifier.Update( this, ref _flags.CanStartWithFullStop, newOne.CanStartWithFullStop, () => CanStartWithFullStop );
 }
 internal LiveRunCapability( SolvedConfigurationStatus finalConfigStatus, FinalConfigStartableStatus s )
 {
     _flags = new AllFlags( finalConfigStatus, s );
 }
 public AllFlags( SolvedConfigurationStatus finalConfigStatus, FinalConfigStartableStatus s )
 {
     Debug.Assert( (s == null) == (finalConfigStatus == SolvedConfigurationStatus.Disabled), "!Disabled <==> StartableStatus != null" );
     CanStop = finalConfigStatus != SolvedConfigurationStatus.Running;
     if( s != null )
     {
         CanStart = true;
         CanStartWithFullStart = s.CallableWithFullStart;
         CanStartWithStartRecommended = s.CallableWithStartRecommended;
         CanStartWithStopOptionalAndRunnable = s.CallableWithStopOptionalAndRunnable;
         CanStartWithFullStop = s.CanStartWithFullStop;
     }
     else
     {
         CanStart = CanStartWithFullStart = CanStartWithStartRecommended = CanStartWithStopOptionalAndRunnable = CanStartWithFullStop = false;
     }
 }
Exemple #8
0
 internal LiveRunCapability(SolvedConfigurationStatus finalConfigStatus, FinalConfigStartableStatus s)
 {
     _flags = new AllFlags(finalConfigStatus, s);
 }
 internal void InitializeFinalStartableStatus()
 {
     if( !Disabled )
     {
         _finalConfigStartableStatus = new FinalConfigStartableStatus( GetUsefulPropagationInfo() );
     }
 }
 internal void InitializeFinalStartableStatus()
 {
     if( !Disabled )
     {
         _finalConfigStartableStatus = new FinalConfigStartableStatus( this );
     }
 }