Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        //
        // 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));
        }
Exemplo n.º 3
0
 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());
         }
     }
 }