private bool InitCommonComponents(string paramPath) { if (string.IsNullOrEmpty(AssemblyPath)) { AssemblyPath = paramPath; } if (CommonComponentLoader == null) { CommonComponentLoader = new CommonComponentLoader(); } CommonComponentLoader.SetupCommonComponents(AssemblyPath); Log.Debug("Init Common Components"); try { foreach (var component in CommonComponentLoader.Components) { object[] paramArgument = { AbstractComponent.Key }; var init = InitComponent(component, paramArgument); Log.DebugFormat("Assembly: {0}, Class: {1}, Is init: {2}", component.Assembly, component.Class, init); } } catch (Exception ex) { Log.FatalFormat(ex.ToString()); } var isSet = ComponentLoader.InitClassRegistry(); return(isSet); }