private void InitCommsServerCallbacks() { if (ExCommsHostingModuleTypeHelper.Current.HasMonitorServer4CommsServer) { _isCommsServer = true; _commsServersMapByIp = new StringConcurrentDictionary <string>(); _commsServersMapByInsno = new IntConcurrentDictionary <string>(); _mapIpInsNo = new StringConcurrentDictionary <int>(); _commsServerCallbacks = new StringConcurrentDictionary <IExMonServer4CommsServerCallback>(); _commsServerCallbackHelper = new WcfCallbackServerHelper <IExMonServer4CommsServerCallback>(this.Executor, _configStore.LogClients, true); _commsServerCallbackHelper.AfterSubscribed += OnCommServerCallbackHelper_AfterSubscribed; _commsServerCallbackHelper.AfterUnsubscribed += OnCommServerCallbackHelper_AfterUnsubscribed; } }
private void InitCommsServerCallbacks() { if (ExCommsHostingModuleTypeHelper.Current.HasMonitorServer4CommsServer) { _isCommsServer = true; _commsServersMapByIp = new StringConcurrentDictionary<string>(); _commsServersMapByInsno = new IntConcurrentDictionary<string>(); _mapIpInsNo = new StringConcurrentDictionary<int>(); _commsServerCallbacks = new StringConcurrentDictionary<IExMonServer4CommsServerCallback>(); _commsServerCallbackHelper = new WcfCallbackServerHelper<IExMonServer4CommsServerCallback>(this.Executor, _configStore.LogClients, true); _commsServerCallbackHelper.AfterSubscribed += OnCommServerCallbackHelper_AfterSubscribed; _commsServerCallbackHelper.AfterUnsubscribed += OnCommServerCallbackHelper_AfterUnsubscribed; } }