private bool removeRemoteLogger(Ice.RemoteLoggerPrx remoteLogger) { lock (this) { return(_remoteLoggerMap.Remove(remoteLogger.Identity)); } }
detachRemoteLogger(Ice.RemoteLoggerPrx remoteLogger, Ice.Current current) { if (remoteLogger == null) { return(false); } // // No need to convert the proxy as we only use its identity // bool found = removeRemoteLogger(remoteLogger); if (_traceLevel > 0) { if (found) { _logger.trace(_traceCategory, "detached `" + remoteLogger.ToString() + "'"); } else { _logger.trace(_traceCategory, "cannot detach `" + remoteLogger.ToString() + "': not found"); } } return(found); }
// // Change this proxy's communicator, while keeping its invocation timeout // private static RemoteLoggerPrx changeCommunicator(Ice.RemoteLoggerPrx prx, Ice.Communicator communicator) { if (prx == null) { return(null); } return(RemoteLoggerPrx.Parse(prx.ToString(), communicator).Clone(invocationTimeout: prx.InvocationTimeout)); }
internal void deadRemoteLogger(Ice.RemoteLoggerPrx remoteLogger, Ice.Logger logger, Ice.LocalException ex, string operation) { // // No need to convert remoteLogger as we only use its identity // if (removeRemoteLogger(remoteLogger)) { if (_traceLevel > 0) { logger.trace(_traceCategory, "detached `" + remoteLogger.ToString() + "' because " + operation + " raised:\n" + ex.ToString()); } } }
internal RemoteLoggerData(Ice.RemoteLoggerPrx prx, Filters f) { remoteLogger = prx; filters = f; }