private void InitMonProcessorCallbacks()
 {
     if (ExCommsHostingModuleTypeHelper.Current.HasMonitorServer4MonProcessor &&
         !ExCommsHostingModuleTypeHelper.Current.HasMonitorServer4CommsServer)
     {
         _isMonProcessorStandalone = true;
         _monProcessorCallbacks = new StringConcurrentDictionary<IExMonServer4MonProcessorCallback>();
         _monProcessorCallbackHelper =
             new WcfCallbackServerHelper<IExMonServer4MonProcessorCallback>(this.Executor,
                 _configStore.LogClients, true);
         _monProcessorCallbackHelper.AfterSubscribed += OnCommServerCallbackHelper_AfterSubscribed;
         _monProcessorCallbackHelper.AfterUnsubscribed += OnCommServerCallbackHelper_AfterUnsubscribed;
     }
 }
Exemplo n.º 2
0
 private void InitMonProcessorCallbacks()
 {
     if (ExCommsHostingModuleTypeHelper.Current.HasMonitorServer4MonProcessor &&
         !ExCommsHostingModuleTypeHelper.Current.HasMonitorServer4CommsServer)
     {
         _isMonProcessorStandalone   = true;
         _monProcessorCallbacks      = new StringConcurrentDictionary <IExMonServer4MonProcessorCallback>();
         _monProcessorCallbackHelper =
             new WcfCallbackServerHelper <IExMonServer4MonProcessorCallback>(this.Executor,
                                                                             _configStore.LogClients, true);
         _monProcessorCallbackHelper.AfterSubscribed   += OnCommServerCallbackHelper_AfterSubscribed;
         _monProcessorCallbackHelper.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;
            }
        }
        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;
            }
        }