コード例 #1
0
 // Private methods.
 /// <summary>
 /// Tries to pause the execution of PlanetLab commands.
 /// </summary>
 /// <param name="state">The manager state.</param>
 /// <param name="action">The action to take after the execution was paused.</param>
 private void TryPause(PlManagerState state, Action action)
 {
     // Pause the execution through the manager state.
     state.Pause();
     // Execute the action.
     action();
 }