protected override void InitializeInternal() { base.InitializeInternal(); this.FindEBSVersion(); this.InitWorkHandlers(); _di = DataInterfaceFactory.GetInterface(); _ns.Add("gsa", s2sHelper.NS_GSA); _ns.Add("bS2S", s2sHelper.NS_BS2S); InitializeSendDataToEBSThread(); }
private void FindEBSVersion() { ModuleProc PROC = new ModuleProc(this.DYN_MODULE_NAME, "FindEBSVersion"); try { DLSettingDto entity = DataInterfaceFactory.GetInterface().GetSettings(); if (entity != null) { IS_EBS_13_0 = entity.EBSVersion.IgnoreCaseCompare("13.0"); } } catch (Exception ex) { Log.Exception(PROC, ex); } }
public static IServiceHost CreateHost(IExecutorService executorService) { ModuleProc PROC = new ModuleProc("", "CreateHost"); try { #if EBS_NOHOST_SUPPORT bool isEnabled = DataInterfaceFactory.GetInterface().GetSettings().IsEnabled; if (isEnabled) { return(new EBSCommServerHostFactory(executorService)); } #else return(new EBSCommServerHostFactory(executorService)); #endif } catch (Exception ex) { Log.Exception(PROC, ex); } return(new EBSCommServerNoHostFactory(executorService)); }