Ejemplo n.º 1
0
        static NetFxAdapters()
        {
            var discovery = new AttributedPartDiscoveryV1(Resolver.DefaultInstance);

            CompositionServicePart    = discovery.CreatePart(typeof(CompositionService));
            MetadataViewImplProxyPart = discovery.CreatePart(typeof(MetadataViewImplProxy));
        }
Ejemplo n.º 2
0
        static NetFxAdapters()
        {
            var discovery = new AttributedPartDiscoveryV1(Resolver.DefaultInstance);

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