public void StartBuild(ICoreConfigSection coreConfigSection, bool thread) { var config = BuildConfig.FullBuildConfig(_configController, _codeParser(), _sdBuildStrings, _allExporters); var context = new BuildContext(BuildMessenger, _sdBuildStrings, config); if (thread) { Stop(); _buildThread = new Thread(context.StartBuild); _buildThread.Start(); } else { context.StartBuild(); } }