bool IExMonServer4MonProcessorProxy.ProcessH2GMessage(MonMsg_H2G request)
        {
            using (ILogMethod method = Log.LogMethod("IExMonServer4MonProcessorProxy", "ProcessH2GMessage"))
            {
                bool result = default(bool);

                try
                {
                    if (_monProcessorProxy == null)
                    {
                        lock (_monProcessorProxyLock)
                        {
                            if (_monProcessorProxy == null)
                            {
                                _monProcessorProxy = ExMonServer4MonProcessorProxyFactory.Get(this);
                            }
                        }
                    }

                    result = _monProcessorProxy.ProcessH2GMessage(request);
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                }

                return(result);
            }
        }
Ejemplo n.º 2
0
 private void InitMonitorProcessorProxyHelper()
 {
     _monProcessorProxyHelper = new SingletonThreadHelper <IExMonServer4MonProcessor>(
         new Lazy <IExMonServer4MonProcessor>(() =>
                                              ExMonServer4MonProcessorProxyFactory.Get(this)));
 }