Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Log loading of AddIns instead of loading of AddIn Runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrunwald committed Sep 28, 2010
1 parent 05a0a33 commit ee5cb9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Main/Core/Project/Src/AddInTree/AddIn/AddIn.cs
Expand Up @@ -85,6 +85,8 @@ void LoadDependencies()
// However, we need to make sure we don't return before the dependencies are ready,
// so "bool dependenciesLoaded" must be volatile and set only at the very end of this method.
if (!dependenciesLoaded) {
LoggingService.Info("Loading addin " + this.Name);

AssemblyLocator.Init();
foreach (AddInReference r in manifest.Dependencies) {
if (r.RequirePreload) {
Expand Down
2 changes: 0 additions & 2 deletions src/Main/Core/Project/Src/AddInTree/AddIn/Runtime.cs
Expand Up @@ -59,8 +59,6 @@ public void Load()
{
lock (lockObj) {
if (!isAssemblyLoaded) {
LoggingService.Info("Loading addin " + assembly);

if (!this.IsActive)
throw new InvalidOperationException("Cannot load inactive AddIn runtime");

Expand Down

0 comments on commit ee5cb9d

Please sign in to comment.