public ConnectionHelper(Ice.ConnectionInfo con, Ice.Endpoint endpt, Ice.Instrumentation.ConnectionState state) : base(_attributes) { _connectionInfo = con; _endpoint = endpt; _state = state; }
getConnectionObserver(Ice.ConnectionInfo ci, Ice.Endpoint ei, Ice.Instrumentation.ConnectionState s, Ice.Instrumentation.ConnectionObserver o) { return(null); }
getConnectionObserver(Ice.ConnectionInfo c, Ice.Endpoint e, Ice.Instrumentation.ConnectionState s, Ice.Instrumentation.ConnectionObserver old) { lock (this) { Debug.Assert(old == null || old is ConnectionObserverI); if (connectionObserver == null) { connectionObserver = new ConnectionObserverI(); connectionObserver.reset(); } return(connectionObserver); } }
public Ice.Instrumentation.ConnectionObserver getConnectionObserver(Ice.ConnectionInfo c, Ice.Endpoint e, Ice.Instrumentation.ConnectionState s, Ice.Instrumentation.ConnectionObserver obsv) { if (_connections.isEnabled()) { try { Ice.Instrumentation.ConnectionObserver del = null; ConnectionObserverI o = obsv is ConnectionObserverI ? (ConnectionObserverI)obsv : null; if (_delegate != null) { del = _delegate.getConnectionObserver(c, e, s, o != null ? o.getDelegate() : obsv); } return(_connections.getObserver(new ConnectionHelper(c, e, s), obsv, del)); } catch (Exception ex) { _metrics.getLogger().error("unexpected exception trying to obtain observer:\n" + ex); } } return(null); }
public Ice.Instrumentation.IConnectionObserver?GetConnectionObserver( ConnectionInfo ci, Endpoint ei, Ice.Instrumentation.ConnectionState s, Ice.Instrumentation.IConnectionObserver? o) => null;