Ejemplo n.º 1
0
 private void InnerCall(IWampCaller caller, Action callAction, long requestId, CallOptions options, string procedure)
 {
     InnerAction(caller,
                 authorizer => authorizer.CanCall(options, procedure),
                 callAction,
                 exception => caller.CallError(requestId, exception));
 }
Ejemplo n.º 2
0
        private void CallPattern(IWampCaller caller, long requestId, CallOptions options, string procedure, Action <IWampRpcOperationInvoker, IWampRawRpcOperationClientCallback, InvocationDetails> invokeAction)
        {
            try
            {
                IWampRawRpcOperationClientCallback callback = GetCallback(caller, requestId);

                InvocationDetails invocationOptions =
                    GetInvocationOptions(caller, options, procedure);

                ValidateCallUri(procedure);

                invokeAction(mInvoker, callback, invocationOptions);
            }
            catch (WampException ex)
            {
                caller.CallError(requestId, ex);
            }
        }
 public void Error <TResult>(IWampFormatter <TResult> formatter, TResult details, string error)
 {
     mCaller.CallError(mRequestId, details, error);
 }