Beispiel #1
0
        private _System.Threading.Tasks.Task _iceI_initiateCallbackAsync(Demo.CallbackReceiverPrx iceP_proxy, string iceP_message, Ice.OptionalContext context, _System.IProgress <bool> progress, _System.Threading.CancellationToken cancel, bool synchronous)
        {
            var completed = new IceInternal.OperationTaskCompletionCallback <object>(progress, cancel);

            _iceI_initiateCallback(iceP_proxy, iceP_message, context, synchronous, completed);
            return(completed.Task);
        }
Beispiel #2
0
 public void initiateCallback(Demo.CallbackReceiverPrx proxy, string message, Ice.OptionalContext context = new Ice.OptionalContext())
 {
     try
     {
         _iceI_initiateCallbackAsync(proxy, message, context, null, _System.Threading.CancellationToken.None, true).Wait();
     }
     catch (_System.AggregateException ex_)
     {
         throw ex_.InnerException;
     }
 }
Beispiel #3
0
        private void _iceI_initiateCallback(Demo.CallbackReceiverPrx iceP_proxy, string iceP_message, _System.Collections.Generic.Dictionary <string, string> context, bool synchronous, IceInternal.OutgoingAsyncCompletionCallback completed)
        {
            var outAsync = getOutgoingAsync <object>(completed);

            outAsync.invoke(
                _initiateCallback_name,
                Ice.OperationMode.Normal,
                Ice.FormatType.DefaultFormat,
                context,
                synchronous,
                write: (Ice.OutputStream ostr) =>
            {
                Demo.CallbackReceiverPrxHelper.write(ostr, iceP_proxy);
                ostr.writeString(iceP_message);
            });
        }
Beispiel #4
0
 private Ice.AsyncResult <Demo.Callback_CallbackSender_initiateCallback> begin_initiateCallback(Demo.CallbackReceiverPrx proxy, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync <Demo.Callback_CallbackSender_initiateCallback> result__ = getOnewayOutgoingAsync <Demo.Callback_CallbackSender_initiateCallback>(__initiateCallback_name, initiateCallback_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare(__initiateCallback_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
         IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
         Demo.CallbackReceiverPrxHelper.write__(os__, proxy);
         result__.endWriteParams();
         result__.invoke();
     }
     catch (Ice.Exception ex__)
     {
         result__.abort(ex__);
     }
     return(result__);
 }
Beispiel #5
0
 public Ice.AsyncResult begin_initiateCallback(Demo.CallbackReceiverPrx proxy, _System.Collections.Generic.Dictionary <string, string> ctx__, Ice.AsyncCallback cb__, object cookie__)
 {
     return(begin_initiateCallback(proxy, ctx__, true, false, cb__, cookie__));
 }
Beispiel #6
0
 public Ice.AsyncResult begin_initiateCallback(Demo.CallbackReceiverPrx proxy, Ice.AsyncCallback cb__, object cookie__)
 {
     return(begin_initiateCallback(proxy, null, false, false, cb__, cookie__));
 }
Beispiel #7
0
 public Ice.AsyncResult <Demo.Callback_CallbackSender_initiateCallback> begin_initiateCallback(Demo.CallbackReceiverPrx proxy, _System.Collections.Generic.Dictionary <string, string> ctx__)
 {
     return(begin_initiateCallback(proxy, ctx__, true, false, null, null));
 }
Beispiel #8
0
 public Ice.AsyncResult <Demo.Callback_CallbackSender_initiateCallback> begin_initiateCallback(Demo.CallbackReceiverPrx proxy)
 {
     return(begin_initiateCallback(proxy, null, false, false, null, null));
 }
Beispiel #9
0
 private void initiateCallback(Demo.CallbackReceiverPrx proxy, _System.Collections.Generic.Dictionary <string, string> context__, bool explicitCtx__)
 {
     end_initiateCallback(begin_initiateCallback(proxy, context__, explicitCtx__, true, null, null));
 }
Beispiel #10
0
 public _System.Threading.Tasks.Task initiateCallbackAsync(Demo.CallbackReceiverPrx proxy, string message, Ice.OptionalContext context = new Ice.OptionalContext(), _System.IProgress <bool> progress = null, _System.Threading.CancellationToken cancel = new _System.Threading.CancellationToken())
 {
     return(_iceI_initiateCallbackAsync(proxy, message, context, progress, cancel, false));
 }
Beispiel #11
0
 public void initiateCallback(Demo.CallbackReceiverPrx proxy)
 {
     this.initiateCallback(proxy, null, false);
 }
Beispiel #12
0
 public abstract void initiateCallback(Demo.CallbackReceiverPrx proxy, string message, Ice.Current current = null);
Beispiel #13
0
        private Ice.AsyncResult <Demo.Callback_CallbackSender_initiateCallback> begin_initiateCallback(Demo.CallbackReceiverPrx iceP_proxy, string iceP_message, _System.Collections.Generic.Dictionary <string, string> context, Ice.AsyncCallback completedCallback, object cookie, bool synchronous)
        {
            var completed = new IceInternal.OperationAsyncResultCompletionCallback <Demo.Callback_CallbackSender_initiateCallback, object>(
                (Demo.Callback_CallbackSender_initiateCallback cb, object ret) =>
            {
                if (cb != null)
                {
                    cb.Invoke();
                }
            },
                this, _initiateCallback_name, cookie, completedCallback);

            _iceI_initiateCallback(iceP_proxy, iceP_message, context, synchronous, completed);
            return(completed);
        }
Beispiel #14
0
 public Ice.AsyncResult begin_initiateCallback(Demo.CallbackReceiverPrx proxy, string message, Ice.OptionalContext context, Ice.AsyncCallback callback, object cookie)
 {
     return(begin_initiateCallback(proxy, message, context, callback, cookie, false));
 }
Beispiel #15
0
 public Ice.AsyncResult <Demo.Callback_CallbackSender_initiateCallback> begin_initiateCallback(Demo.CallbackReceiverPrx proxy, string message, Ice.OptionalContext context = new Ice.OptionalContext())
 {
     return(begin_initiateCallback(proxy, message, context, null, null, false));
 }
Beispiel #16
0
 public void initiateCallback(Demo.CallbackReceiverPrx proxy)
 {
     initiateCallback(proxy, Ice.ObjectImpl.defaultCurrent);
 }
Beispiel #17
0
 public abstract void initiateCallback(Demo.CallbackReceiverPrx proxy, Ice.Current current__);
Beispiel #18
0
 public void initiateCallback(Demo.CallbackReceiverPrx proxy, _System.Collections.Generic.Dictionary <string, string> ctx__)
 {
     this.initiateCallback(proxy, ctx__, true);
 }