Example #1
0
 private bool removeRemoteLogger(Ice.RemoteLoggerPrx remoteLogger)
 {
     lock (this)
     {
         return(_remoteLoggerMap.Remove(remoteLogger.Identity));
     }
 }
Example #2
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);
        }
Example #3
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));
        }
Example #4
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());
         }
     }
 }
Example #5
0
 internal RemoteLoggerData(Ice.RemoteLoggerPrx prx, Filters f)
 {
     remoteLogger = prx;
     filters      = f;
 }