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; } }
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); }