DoDispatch() static private méthode

static private DoDispatch ( byte reqStmBuff, System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage smuggledMcm, System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage &smuggledMrm ) : byte[]
reqStmBuff byte
smuggledMcm System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage
smuggledMrm System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage
Résultat byte[]
Exemple #1
0
        internal static object DoTransitionDispatchCallback(object[] args)
        {
            byte[] reqStmBuff = (byte[])args[0];
            SmuggledMethodCallMessage   smuggledMcm = (SmuggledMethodCallMessage)args[1];
            SmuggledMethodReturnMessage smuggledMethodReturnMessage = null;

            byte[] result = null;
            try
            {
                result = CrossAppDomainSink.DoDispatch(reqStmBuff, smuggledMcm, out smuggledMethodReturnMessage);
            }
            catch (Exception e)
            {
                IMessage msg = new ReturnMessage(e, new ErrorMessage());
                result = CrossAppDomainSerializer.SerializeMessage(msg).GetBuffer();
            }
            args[2] = smuggledMethodReturnMessage;
            return(result);
        }
Exemple #2
0
        internal static object DoTransitionDispatchCallback(object[] args)
        {
            byte[] reqStmBuff = (byte[])args[0];
            SmuggledMethodCallMessage   smuggledMcm = (SmuggledMethodCallMessage)args[1];
            SmuggledMethodReturnMessage smuggledMrm = (SmuggledMethodReturnMessage)null;

            byte[] numArray;
            try
            {
                numArray = CrossAppDomainSink.DoDispatch(reqStmBuff, smuggledMcm, out smuggledMrm);
            }
            catch (Exception ex)
            {
                ErrorMessage errorMessage = new ErrorMessage();
                numArray = CrossAppDomainSerializer.SerializeMessage((IMessage) new ReturnMessage(ex, (IMethodCallMessage)errorMessage)).GetBuffer();
            }
            args[2] = (object)smuggledMrm;
            return((object)numArray);
        }