public ReAttachPackage(IReAttachReporter reporter, IReAttachHistory history, IReAttachUi ui, IReAttachDebugger debugger) { Reporter = reporter; History = history; Ui = ui; Debugger = debugger; }
public ReAttachPackage(IReAttachReporter reporter, IReAttachHistory history, IReAttachUi ui, IReAttachDebugger debugger) { Reporter = reporter; History = history; Ui = ui; Debugger = debugger; }
protected override void Initialize() { base.Initialize(); // Wire-up modules. No XML-based unity.config from hell thank you. Reporter = Reporter ?? new ReAttachTraceReporter(); History = History ?? new ReAttachHistory(new ReAttachRegistryRepository(this)); Ui = Ui ?? new ReAttachUi(this); Debugger = Debugger ?? new ReAttachDebugger(this); History.Load(); Ui.Update(); }
protected override void Initialize() { base.Initialize(); Reporter = Reporter ?? new ReAttachTraceReporter(); History = History ?? new ReAttachHistory(new ReAttachRegistryRepository(this)); Ui = Ui ?? new ReAttachUi(this); Debugger = Debugger ?? new ReAttachDebugger(this); History.Load(); Ui.Update(); var callback = new ServiceCreatorCallback(CreateBusService); ((IServiceContainer)this).AddService(typeof(IReAttachBusService), callback); }
protected override async Task InitializeAsync(System.Threading.CancellationToken cancellationToken, IProgress <VS.ServiceProgressData> progress) { await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); await base.InitializeAsync(cancellationToken, progress); Reporter = Reporter ?? new ReAttachTraceReporter(); History = History ?? new ReAttachHistory(new ReAttachRegistryRepository(this)); Ui = Ui ?? await ReAttachUi.InitAsync(this); Debugger = Debugger ?? await ReAttachDebugger.InitAsync(this); History.Load(); Ui.Update(); var callback = new ServiceCreatorCallback(CreateBusService); ((IServiceContainer)this).AddService(typeof(IReAttachBusService), callback); }