コード例 #1
0
        static NetFxAdapters()
        {
            var discovery = new AttributedPartDiscoveryV1(Resolver.DefaultInstance);

            CompositionServicePart    = discovery.CreatePart(typeof(CompositionService));
            MetadataViewImplProxyPart = discovery.CreatePart(typeof(MetadataViewImplProxy));
        }
コード例 #2
0
ファイル: NetFxAdapters.cs プロジェクト: iron2han/vs-mef
        static NetFxAdapters()
        {
            var discovery = new AttributedPartDiscoveryV1(Resolver.DefaultInstance);

            CompositionServicePart = discovery.CreatePart(typeof(CompositionService)) ?? throw Assumes.NotReachable();
        }