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); } }
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); } }