2 // System.Runtime.Remoting.Activation.ConstructionLevelActivator.cs
4 // Author: Lluis Sanchez Gual (lluis@ideary.com)
6 // (C) 2003, Lluis Sanchez Gual
10 using System.Runtime.Remoting.Messaging;
12 namespace System.Runtime.Remoting.Activation
15 public class ConstructionLevelActivator: IActivator
19 public ActivatorLevel Level
21 get { return ActivatorLevel.Construction; }
24 public IActivator NextActivator
27 set { _next = value; }
30 public IConstructionReturnMessage Activate (IConstructionCallMessage msg)
32 // The StackBuilderSink at the end of the server context sink chain will do the job
34 ServerIdentity identity = (ServerIdentity) RemotingServices.GetMessageTargetIdentity (msg);
35 if (identity.Context == null) identity.Context = Threading.Thread.CurrentContext;
37 return (IConstructionReturnMessage) identity.Context.GetServerContextSinkChain().SyncProcessMessage (msg);