internal static IExMonitorTransceiver RegisterAndGet(IExecutorService executorService, ExMonitorServerImpl monitorServer)
        {
            using (ILogMethod method = Log.LogMethod("", "Method"))
            {
                try
                {
                    if (_instance == null)
                    {
                        lock (_instanceLock)
                        {
                            if (_instance == null)
                            {
                                _instance = new MonitorTransceiver_InMemory(executorService, monitorServer);
                            }
                        }
                    }

                    return _instance;
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                }

                return _instance;
            }
        }
示例#2
0
        internal static IExMonitorTransceiver RegisterAndGet(IExecutorService executorService, ExMonitorServerImpl monitorServer)
        {
            using (ILogMethod method = Log.LogMethod("", "Method"))
            {
                try
                {
                    if (_instance == null)
                    {
                        lock (_instanceLock)
                        {
                            if (_instance == null)
                            {
                                _instance = new MonitorTransceiver_InMemory(executorService, monitorServer);
                            }
                        }
                    }

                    return(_instance);
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                }

                return(_instance);
            }
        }
 private void InitTransceiver()
 {
     _transceiver = ExMonitorTransceiverFactory.RegisterAndGet(this.Executor, this);
 }