Exemple #1
0
 public void LoadAtRoute(string route)
 {
     Content = UmbracoContext.ContentCache.GetByRoute(route, true);
     if (Content == null)
     {
         throw new Exception("Can't find content at route " + route);
     }
     LoadedContent?.Invoke(this, EventArgs.Empty);
 }
Exemple #2
0
 internal static void InvokeLoadedContent(ContentManager contentManager)
 {
     LoadedContent?.Invoke(null, new LoadedContentEventArgs(contentManager));
 }
Exemple #3
0
 public virtual void LoadContent()
 {
     LoadedContent?.Invoke(this, EventArgs.Empty);
 }