Example #1
0
        public static TComponent Import(ICompositionService compositionService)
        {
            var importer = new SingleImporter();

            compositionService.SatisfyImportsOnce(importer);
            return(importer.Import);
        }
Example #2
0
        public static TComponent Import()
        {
            SingleImporter importer = new SingleImporter();

            EditorShell.Current.CompositionService.SatisfyImportsOnce(importer);

            return(importer.Import);
        }