Ejemplo n.º 1
0
        public void Invoke(string operation,
                           bool oneway,
                           IReadOnlyDictionary <string, string>?context,
                           bool synchronous)
        {
            try
            {
                Proxy.IceReference.Protocol.CheckSupported();
                IsOneway = oneway;
                context ??= ProxyAndCurrentContext();
                Observer = ObserverHelper.GetInvocationObserver(Proxy, operation, context);

                switch (Proxy.IceReference.InvocationMode)
                {
                case InvocationMode.BatchOneway:
                case InvocationMode.BatchDatagram:
                {
                    Debug.Assert(false);     // not implemented
                    break;
                }
                }
                Invoke(synchronous);
            }
            catch (Exception ex)
            {
                Abort(ex);
            }
        }
Ejemplo n.º 2
0
 // Called by IceInvokeAsync
 internal void Invoke(string operation, IReadOnlyDictionary <string, string>?context, bool synchronous)
 {
     context ??= ProxyAndCurrentContext();
     Observer = ObserverHelper.GetInvocationObserver(Proxy, operation, context);
     Invoke(synchronous);
 }