/// <summary>
 /// Restores the state of the context service to the provided state.
 /// </summary>
 /// <param name="state">The state to restore to.</param>
 public void RestoreState(NavigationContextServiceState state)
 {
     if (state != null)
     {
         this.currentId = state.CurrentId;
         this.contextStore = state.Store;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NavigationContextService" /> class.
 /// </summary>
 public NavigationContextService()
 {
     this.contextStore = new NavigationContextStore();
 }