public ReAttachPackage(IReAttachReporter reporter, IReAttachHistory history, IReAttachUi ui, IReAttachDebugger debugger)
 {
     Reporter = reporter;
     History = history;
     Ui = ui;
     Debugger = debugger;
 }
Exemple #2
0
 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();
        }