private UpacContext() { // Eager loading properties // Starter med forside node Node = Node.GetCurrent(); Assert.EnsureNotNullReference(Node, "Node"); NodeAxes axes = new NodeAxes(Node); HomeNode = axes.GetAncestorAtLevel(1); Assert.EnsureNotNullReference(HomeNode, "SiteRootNode"); }
private UpacContext() { // Eager loading properties // Starter med forside node Node = Node.GetCurrent(); Assert.EnsureNotNullReference(Node, "Node"); NodeAxes axes = new NodeAxes(Node); HomeNode = axes.GetAncestorAtLevel(1); Assert.EnsureNotNullReference(HomeNode, "SiteRootNode"); }