public static void Clear() { Bootstrappers = new List <IBootstrapper>(); Commands = new List <ICommand>(); EventConsumers = new List <IEventConsumer>(); EventSources = new List <IEventSource>(); Services = new List <IService>(); Bindings = new List <Binding>(); Domains?.ForEach(AppDomain.Unload); Domains = new List <AppDomain>(); }