ServiceStack/ServiceStack — pull request #323 by franklinwise (2012-11-05 00:16:26+00:00)
Title: Added support for multiple instances of service stack in the same app domain

Ran through all 1000+ unit tests. Since the tests aren't designed to be run all at the same time it is difficult to get a clear picture of what's happening.

So it seems as though between running the tests inside vs 2012 and using Nunit the tests pass, but there are differences between how vs2012 executes Nunit tests vs how Nunit does.

Let me know what you come up with on your side. I'm happy to fix any bugs that come up. However, most of the issues that are occurring now are because of the interdependencies of Service Stack's original static model.

For instance, one can access a property on the AppConfig or endpoint host and change these values before the AppHost is set and the after the app host is set, some of these values may get overridden and some not. To me it seems too fragile with the static members, so hopefully the instance based model I've implemented will help over time.