private void ExportContentUserGroups(System.ComponentModel.Composition.Hosting.CompositionContainer container) { GetContentUserGroups(); foreach (Box.Composition.IUserGroup g in groupsCache) { container.ComposeExportedValue <Box.Composition.IUserGroup>(g); } }
private void ExportContentLinks(System.ComponentModel.Composition.Hosting.CompositionContainer container) { GetContentKinds(); foreach (ContentKind k in kindsCache) { Menus.ContentLink link = new Menus.ContentLink(k.FriendlyPluralName, k.CaptureController + "/?kind=" + k.Kind, k.RequiredRolesToEdit); container.ComposeExportedValue <Box.Composition.IMenuActionLink>(link); } }