* ActivationServices.cs: If remote activation returns an exception, do not
[mono.git] / mcs / class / corlib / System.Runtime.Remoting.Activation / ConstructionLevelActivator.cs
1 //
2 // System.Runtime.Remoting.Activation.ConstructionLevelActivator.cs
3 //
4 // Author: Lluis Sanchez Gual (lluis@ideary.com)
5 //
6 // (C) 2003, Lluis Sanchez Gual
7 //
8
9 using System;
10 using System.Runtime.Remoting.Messaging;
11
12 namespace System.Runtime.Remoting.Activation
13 {
14         [Serializable]
15         internal class ConstructionLevelActivator: IActivator
16         {
17                 public ActivatorLevel Level 
18                 {
19                         get { return ActivatorLevel.Construction; }
20                 }
21
22                 public IActivator NextActivator 
23                 {
24                         get { return null; }
25                         set { ; }
26                 }
27
28                 public IConstructionReturnMessage Activate (IConstructionCallMessage msg)
29                 {
30                         // The StackBuilderSink at the end of the server context sink chain will do the job
31                         return (IConstructionReturnMessage) Threading.Thread.CurrentContext.GetServerContextSinkChain().SyncProcessMessage (msg);
32                 }
33         }
34 }