ActivateWithMessage() static private method

static private ActivateWithMessage ( Type serverType, IMessage msg, ServerIdentity srvIdToBind, Exception &e ) : Object
serverType System.Type
msg IMessage
srvIdToBind System.Runtime.Remoting.ServerIdentity
e System.Exception
return Object
        internal static IConstructionReturnMessage DoServerContextActivation(IConstructionCallMessage reqMsg)
        {
            Exception e = null;
            Type      activationType = reqMsg.ActivationType;
            object    serverObj      = ActivationServices.ActivateWithMessage(activationType, reqMsg, null, out e);

            return(ActivationServices.SetupConstructionReply(serverObj, reqMsg, e));
        }
Ejemplo n.º 2
0
        internal static IConstructionReturnMessage DoServerContextActivation(IConstructionCallMessage reqMsg)
        {
            Exception e = (Exception)null;

            return(ActivationServices.SetupConstructionReply(ActivationServices.ActivateWithMessage(reqMsg.ActivationType, (IMessage)reqMsg, (ServerIdentity)null, out e), reqMsg, e));
        }