コード例 #1
0
ファイル: example.cs プロジェクト: cornell-cup/cs-r2-bot
        private string toUpper(string s, _System.Collections.Generic.Dictionary <string, string> context__, bool explicitContext__)
        {
            if (explicitContext__ && context__ == null)
            {
                context__ = emptyContext_;
            }
            Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __toUpper_name, context__);
            int cnt__ = 0;

            try
            {
                while (true)
                {
                    Ice.ObjectDel_ delBase__ = null;
                    try
                    {
                        checkTwowayOnly__(__toUpper_name);
                        delBase__ = getDelegate__(false);
                        ConverterDel_ del__ = (ConverterDel_)delBase__;
                        return(del__.toUpper(s, context__, observer__));
                    }
                    catch (IceInternal.LocalExceptionWrapper ex__)
                    {
                        handleExceptionWrapper__(delBase__, ex__, observer__);
                    }
                    catch (Ice.LocalException ex__)
                    {
                        handleException__(delBase__, ex__, true, ref cnt__, observer__);
                    }
                }
            }
            finally
            {
                if (observer__ != null)
                {
                    observer__.detach();
                }
            }
        }
コード例 #2
0
            private NProgDistributed.TheIce.MessageDto Send(NProgDistributed.TheIce.MessageDto message, _System.Collections.Generic.Dictionary <string, string> context__, bool explicitContext__)
            {
                if (explicitContext__ && context__ == null)
                {
                    context__ = emptyContext_;
                }
                Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __Send_name, context__);
                int cnt__ = 0;

                try
                {
                    while (true)
                    {
                        Ice.ObjectDel_ delBase__ = null;
                        try
                        {
                            checkTwowayOnly__(__Send_name);
                            delBase__ = getDelegate__(false);
                            IMessageServiceDel_ del__ = (IMessageServiceDel_)delBase__;
                            return(del__.Send(message, context__, observer__));
                        }
                        catch (IceInternal.LocalExceptionWrapper ex__)
                        {
                            handleExceptionWrapper__(delBase__, ex__, observer__);
                        }
                        catch (Ice.LocalException ex__)
                        {
                            handleException__(delBase__, ex__, true, ref cnt__, observer__);
                        }
                    }
                }
                finally
                {
                    if (observer__ != null)
                    {
                        observer__.detach();
                    }
                }
            }
コード例 #3
0
        private void log(string name, string time, string msg, _System.Collections.Generic.Dictionary <string, string> context__, bool explicitContext__)
        {
            if (explicitContext__ && context__ == null)
            {
                context__ = emptyContext_;
            }
            Ice.Instrumentation.InvocationObserver observer__ = IceInternal.ObserverHelper.get(this, __log_name, context__);
            int cnt__ = 0;

            try
            {
                while (true)
                {
                    Ice.ObjectDel_ delBase__ = null;
                    try
                    {
                        delBase__ = getDelegate__(false);
                        RemoteLogDel_ del__ = (RemoteLogDel_)delBase__;
                        del__.log(name, time, msg, context__, observer__);
                        return;
                    }
                    catch (IceInternal.LocalExceptionWrapper ex__)
                    {
                        handleExceptionWrapper__(delBase__, ex__, observer__);
                    }
                    catch (Ice.LocalException ex__)
                    {
                        handleException__(delBase__, ex__, true, ref cnt__, observer__);
                    }
                }
            }
            finally
            {
                if (observer__ != null)
                {
                    observer__.detach();
                }
            }
        }