public void Initialize(bool isThreadedListenerEnabled = true, bool isSchedulerEnabled = true, bool isWebApiEnabled = true) { engineHostCompositionRoot = new EngineHostCompositionRoot(AssembliesWithJobs) { IsWebApiEnabled = isWebApiEnabled, IsSchedulerEnabled = isSchedulerEnabled, IsMessageQueueListenerManagerEnabled = isThreadedListenerEnabled, }; engineHostCompositionRoot.Configure(); }