private IWampRpcOperation GetOperation()
        {
            IWampRpcOperation result = mSelector.SelectOperation(mOperations);

            if (result == null)
            {
                WampRpcThrowHelper.NoProcedureRegistered(Procedure);
            }

            return(result);
        }
        private IWampCancellableInvocation InvokePattern(Func <MatchRpcOperationCatalog, IWampCancellableInvocation> invokeAction, string procedure)
        {
            foreach (MatchRpcOperationCatalog catalog in mInnerCatalogs)
            {
                IWampCancellableInvocation result = invokeAction(catalog);

                if (result != null)
                {
                    return(result);
                }
            }

            WampRpcThrowHelper.NoProcedureRegistered(procedure);

            return(null);
        }
示例#3
0
        private void InvokePattern(Func <MatchRpcOperationCatalog, bool> invokeAction, string procedure)
        {
            bool invoked = false;

            foreach (MatchRpcOperationCatalog catalog in mInnerCatalogs)
            {
                if (invokeAction(catalog))
                {
                    invoked = true;
                    break;
                }
            }

            if (!invoked)
            {
                WampRpcThrowHelper.NoProcedureRegistered(procedure);
            }
        }