예제 #1
0
파일: Proxy.cs 프로젝트: Radulfr/zeroc-ice
        private AsyncResult<Callback_Object_ice_invoke> begin_ice_invoke(string operation,
                                                                         OperationMode mode,
                                                                         byte[] inEncaps,
                                                                         Dictionary<string, string> context__,
                                                                         bool explicitContext__,
                                                                         Ice.AsyncCallback cb__,
                                                                         object cookie__)
        {
            IceInternal.TwowayOutgoingAsync<Callback_Object_ice_invoke> result__ =
                new IceInternal.TwowayOutgoingAsync<Callback_Object_ice_invoke>(this, __ice_invoke_name,
                                                                                ice_invoke_completed__, cookie__);
            if(cb__ != null)
            {
                result__.whenCompletedWithAsyncCallback(cb__);
            }

            try
            {
                result__.prepare__(operation, mode, context__, explicitContext__);
                result__.writeParamEncaps__(inEncaps);
                result__.send__(true);
            }
            catch(Ice.LocalException ex__)
            {
                result__.exceptionAsync__(ex__);
            }
            return result__;
        }