예제 #1
0
 /// <summary>
 /// Get the full list of URL currently in the breadcrumb. Index 0 being the farthest page.
 /// </summary>
 /// <returns>The full list of URL currently in the breadcrumb</returns>
 public static IEnumerable <string> GetOrderedUrls()
 {
     return(StateManager.GetState(SessionProvider.SessionId).Crumbs.Select(s => s.Url));
 }
예제 #2
0
 /// <summary>
 /// Get the currently active URL from the BreadCrumb
 /// </summary>
 /// <returns>The currently active URL from the BreadCrumb</returns>
 public static string GetCurrentUrl()
 {
     return(StateManager.GetState(SessionProvider.SessionId).Current.Url);
 }
예제 #3
0
        public static void SetLabel(string label)
        {
            var state = StateManager.GetState(SessionProvider.SessionId);

            state.Current.Label = label;
        }
예제 #4
0
 public static void Clear()
 {
     StateManager.RemoveState(SessionProvider.SessionId);
 }
예제 #5
0
 /// <summary>
 /// Get the full list of <see cref="RedirectResult"/> currently in the breadcrumb. Index 0 being the farthest page.
 /// </summary>
 /// <returns>The full list of <see cref="RedirectResult"/> currently in the breadcrumb</returns>
 public static IEnumerable <RedirectResult> GetOrderedRedirections()
 {
     return(StateManager.GetState(SessionProvider.SessionId).Crumbs.Select(s => new RedirectResult(s.Url)));
 }