private void Deployment(object obj) { try { OutputWindowHelper.Log("Deployment Start.."); CrmServiceClient client = GetConnection(SelectedConfig); AssemblyLoaderCrm loader = new AssemblyLoaderCrm(new OutputLog(), GetPath(SelectedConfig.Path), client, SelectedConfig.IsolationMode, SelectedConfig.SourceType); loader.Run(); _configReader.Save(Configs.ToDictionary(k => k.Name, v => (IConfigItem)v)); } catch (Exception ex) { OutputWindowHelper.Log(ex.Message); OutputWindowHelper.Log(ex.ToString()); throw; } finally { OutputWindowHelper.Log("Deployment Stop.."); CloseRequest?.Invoke(false); } }