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); } }
// Called by IceInvokeAsync internal void Invoke(string operation, IReadOnlyDictionary <string, string>?context, bool synchronous) { context ??= ProxyAndCurrentContext(); Observer = ObserverHelper.GetInvocationObserver(Proxy, operation, context); Invoke(synchronous); }