Ejemplo n.º 1
0
 public ReAttachPackage(IReAttachReporter reporter, IReAttachHistory history, IReAttachUi ui, IReAttachDebugger debugger)
 {
     Reporter = reporter;
     History = history;
     Ui = ui;
     Debugger = debugger;
 }
Ejemplo n.º 2
0
 public ReAttachPackage(IReAttachReporter reporter, IReAttachHistory history, IReAttachUi ui, IReAttachDebugger debugger)
 {
     Reporter = reporter;
     History  = history;
     Ui       = ui;
     Debugger = debugger;
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }