Ejemplo n.º 1
0
        public string end_toUpper(Ice.AsyncResult r__)
        {
            IceInternal.OutgoingAsync outAsync__ = (IceInternal.OutgoingAsync)r__;
            IceInternal.OutgoingAsync.check__(outAsync__, this, __toUpper_name);
            bool ok__ = outAsync__.wait__();

            try
            {
                if (!ok__)
                {
                    try
                    {
                        outAsync__.throwUserException__();
                    }
                    catch (Ice.UserException ex__)
                    {
                        throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
                    }
                }
                string ret__;
                IceInternal.BasicStream is__ = outAsync__.startReadParams__();
                ret__ = is__.readString();
                outAsync__.endReadParams__();
                return(ret__);
            }
            catch (Ice.LocalException ex)
            {
                Ice.Instrumentation.InvocationObserver obsv__ = outAsync__.getObserver__();
                if (obsv__ != null)
                {
                    obsv__.failed(ex.ice_name());
                }
                throw ex;
            }
        }
            public NProgDistributed.TheIce.MessageDto end_Send(Ice.AsyncResult r__)
            {
                IceInternal.OutgoingAsync outAsync__ = (IceInternal.OutgoingAsync)r__;
                IceInternal.OutgoingAsync.check__(outAsync__, this, __Send_name);
                bool ok__ = outAsync__.wait__();

                try
                {
                    if (!ok__)
                    {
                        try
                        {
                            outAsync__.throwUserException__();
                        }
                        catch (Ice.UserException ex__)
                        {
                            throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
                        }
                    }
                    NProgDistributed.TheIce.MessageDto ret__;
                    IceInternal.BasicStream            is__ = outAsync__.startReadParams__();
                    IceInternal.ParamPatcher <NProgDistributed.TheIce.MessageDto> ret__PP = new IceInternal.ParamPatcher <NProgDistributed.TheIce.MessageDto>(NProgDistributed.TheIce.MessageDto.ice_staticId());
                    is__.readObject(ret__PP);
                    is__.readPendingObjects();
                    outAsync__.endReadParams__();
                    ret__ = ret__PP.value;
                    return(ret__);
                }
                catch (Ice.LocalException ex)
                {
                    Ice.Instrumentation.InvocationObserver obsv__ = outAsync__.getObserver__();
                    if (obsv__ != null)
                    {
                        obsv__.failed(ex.ice_name());
                    }
                    throw ex;
                }
            }