Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WebPageScope"/> class.
        /// </summary>
        /// <param name="sessionContest">The session contest.</param>
        /// <param name="navigationState">State of the navigation.</param>
        public WebPageScope(ISessionScope sessionContest, 
                            NavigationState navigationState)
        {
            AssertUtils.ArgumentNotNull(sessionContest, "sessionContest");
            AssertUtils.ArgumentNotNull(navigationState, "navigationState");

            _sessionScope = sessionContest;
            _navigationState = navigationState;
        }
Beispiel #2
0
 /// <summary>
 /// Gets the next view.
 /// </summary>
 /// <param name="navigationState">The navigation context.</param>
 /// <returns>The view id</returns>
 public string GetNextView(NavigationState navigationState)
 {
     return ConfigUtil.Settings.GetNextView(navigationState.CurrentView, navigationState.Action);
 }