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); }
internal static void InvokeLoadedContent(ContentManager contentManager) { LoadedContent?.Invoke(null, new LoadedContentEventArgs(contentManager)); }
public virtual void LoadContent() { LoadedContent?.Invoke(this, EventArgs.Empty); }