Exemple #1
0
 /// <summary>
 /// Overloaded. Initializes a new OpenNavigator.
 /// </summary>
 /// <param name="name">The name of the navigation graph to which open navigation applies.</param>
 /// <param name="taskId">The task identifier (a GUID associated with the task).</param>
 public OpenNavigator(string name, Guid taskId)
 {
     Name        = name;
     ViewManager = ViewManagerFactory.Create();
     SetState(StateFactory.Load(name, taskId));
     _cacheConfiguration = UIPConfiguration.Config.GetCacheConfiguration();
 }
Exemple #2
0
 /// <summary>
 /// Loads a State object using the type specified in the configuration file for this navigator and task ID.
 /// Navigators can override this if they need to load state in a different way.
 /// </summary>
 /// <param name="taskId">The identifier of the task to load the state for.</param>
 /// <returns>The state that was created.</returns>
 protected virtual State LoadState(Guid taskId)
 {
     return(StateFactory.Load(Name, taskId));
 }
Exemple #3
0
 /// <summary>
 /// Overrides. Loads the <see cref="Microsoft.ApplicationBlocks.UIProcess.State"/> of the OpenNavigator for the given task ID.
 /// </summary>
 /// <param name="taskId">The task identifier (a GUID associated with the task).</param>
 /// <returns>The loaded state.</returns>
 protected override State LoadState(Guid taskId)
 {
     return(StateFactory.Load(taskId));
 }
Exemple #4
0
 /// <summary>
 /// Creates a graph navigator that resumes a saved task.
 /// </summary>
 /// <param name="name">The name of the graph navigator in the configuration file.</param>
 /// <param name="taskId">The task ID of a previously saved task.</param>
 public GraphNavigator(string name, Guid taskId)
 {
     Initialize(name);
     SetState(StateFactory.Load(name, taskId));
 }