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); }
public VSPackage() { _instance = this; Tracer = new OutputWindowTracer(this); _compositionCatalog = new AggregateCatalog(); _compositionContainer = new CompositionContainer(_compositionCatalog, true); _exportProvider = new ExportProviderAdapter(_compositionContainer); _compositionContainer.ComposeExportedValue(_exportProvider); }