private void RegisterAddin(AssemblyInformation addin) { AddInRunner runner = new AddInRunner(addin, this); var thread = new Thread(new ThreadStart(runner.Run)); thread.SetApartmentState(ApartmentState.STA); i18nService.ConfigureThreadI18n(thread); runner.runnerThread = thread; runner.runningAddins = runningAddIns; runner.runningAddinsHash = runningAddinsHash; thread.Start(); runner.bootEvent.WaitOne(); }
private void RegisterAddin(AssemblyInformation addin) { AddInRunner runner = new AddInRunner(addin, this); var thread = new Thread(new ThreadStart(runner.Run)); thread.SetApartmentState(ApartmentState.STA); i18nService.ConfigureThreadI18n(thread); runner.runnerThread = thread; runner.runningAddins = runningAddIns; runner.runningAddinsHash = runningAddinsHash; thread.Start(); runner.bootEvent.WaitOne(); }