コード例 #1
0
 internal void InitializeFinalStartableStatus()
 {
     if (!Disabled)
     {
         _finalConfigStartableStatus = new FinalConfigStartableStatus(this);
     }
 }
コード例 #2
0
 internal void InitializeFinalStartableStatus()
 {
     if (!Disabled)
     {
         _finalConfigStartableStatus = new FinalConfigStartableStatus(GetUsefulPropagationInfo());
     }
 }
コード例 #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);
        }
コード例 #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;
     }
 }
コード例 #5
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 );
 }
コード例 #6
0
 internal LiveRunCapability( SolvedConfigurationStatus finalConfigStatus, FinalConfigStartableStatus s )
 {
     _flags = new AllFlags( finalConfigStatus, s );
 }
コード例 #7
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;
     }
 }
コード例 #8
0
 internal LiveRunCapability(SolvedConfigurationStatus finalConfigStatus, FinalConfigStartableStatus s)
 {
     _flags = new AllFlags(finalConfigStatus, s);
 }
コード例 #9
0
 internal void InitializeFinalStartableStatus()
 {
     if( !Disabled )
     {
         _finalConfigStartableStatus = new FinalConfigStartableStatus( GetUsefulPropagationInfo() );
     }
 }
コード例 #10
0
 internal void InitializeFinalStartableStatus()
 {
     if( !Disabled )
     {
         _finalConfigStartableStatus = new FinalConfigStartableStatus( this );
     }
 }