示例#1
0
        public VsPackage()
        {
            _instance = this;
            Tracer    = new OutputWindowTracer(this);

            _kernel.Bind <ITracer>().ToConstant(Tracer);
            _kernel.Bind <IServiceProvider>().ToConstant(this).Named(nameof(VsPackage));
            ExportProvider = new ExportProvider(_kernel);
        }
示例#2
0
        public VSPackage()
        {
            _instance = this;
            Tracer    = new OutputWindowTracer(this);

            _compositionCatalog   = new AggregateCatalog();
            _compositionContainer = new CompositionContainer(_compositionCatalog, true);
            _exportProvider       = new ExportProviderAdapter(_compositionContainer);
            _compositionContainer.ComposeExportedValue(_exportProvider);
        }