Permalink
Browse files

Move AfterInitCallbacks to end of Init()

  • Loading branch information...
mythz committed Jan 9, 2019
1 parent 3816222 commit 9b51cbdd927e62d5dab038ab7463df87dc50b178
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/ServiceStack/ServiceStackHost.cs
@@ -240,6 +240,13 @@ public virtual ServiceStackHost Init()

HttpHandlerFactory.Init();

foreach (var callback in AfterInitCallbacks)
{
callback(this);
}

ReadyAt = DateTime.UtcNow;

return this;
}

@@ -748,13 +755,6 @@ public virtual void OnAfterInit()
});
};
}

foreach (var callback in AfterInitCallbacks)
{
callback(this);
}

ReadyAt = DateTime.UtcNow;
}

private void ConfigurePlugins()

0 comments on commit 9b51cbd

Please sign in to comment.