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

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

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