/// <summary>
        /// <see cref="IInterceptor.Intercept"/>
        /// </summary>
        /// <param name="invocation"></param>
        public void Intercept(IInvocation invocation)
        {
            WampMessage <object> result =
                mSerializer.SerializeRequest(invocation.Method, invocation.Arguments);

            invocation.ReturnValue = result;
        }
        /// <summary>
        /// <see cref="IInterceptor.Intercept"/>
        /// </summary>
        public void Intercept(IInvocation invocation)
        {
            WampMessage <object> serialized =
                mOutgoingSerializer.SerializeRequest
                    (invocation.Method, invocation.Arguments);

            mOutgoingHandler.Handle(serialized);
        }
Exemple #3
0
 private WampMessage <object> SerializeRequest(IInvocation invocation)
 {
     return(mOutgoingSerializer.SerializeRequest
                (invocation.Method, invocation.Arguments));
 }
Exemple #4
0
 public WampMessage <object> Challenge(string authMethod, ChallengeDetails extra)
 {
     return(mSerializer.SerializeRequest(mChallenge2, new object[] { authMethod, extra }));
 }
Exemple #5
0
        protected void Send(MethodInfo method, params object[] arguments)
        {
            WampMessage <object> serialized = mRequestSerializer.SerializeRequest(method, arguments);

            mMessageHandler.Handle(serialized);
        }