11f5f27e29cc02f26ce49190a18ed5f05e1f0d7f
[mono.git] / mcs / class / corlib / System.Runtime.Remoting / ActivatedClientTypeEntry.cs
1 //
2 // System.Runtime.Remoting.ActivatedClientTypeEntry.cs
3 //
4 // AUthor: Duncan Mak  (duncan@ximian.com)
5 //
6 // 2002 (C) Copyright. Ximian, Inc.
7 //
8
9 using System;
10 using System.Runtime.Remoting;
11 using System.Runtime.Remoting.Contexts;
12
13 namespace System.Runtime.Remoting {
14
15         public class ActivatedClientTypeEntry : TypeEntry
16         {
17                 string applicationUrl;
18                 Type obj_type;
19                 
20                 public ActivatedClientTypeEntry (Type type, string appUrl)
21                 {
22                         AssemblyName = type.Assembly.FullName;
23                         TypeName = type.FullName;
24                         applicationUrl = appUrl;
25                         obj_type = type;
26                 }
27
28                 public ActivatedClientTypeEntry (string typeName, string assemblyName, string appUrl)
29                 {
30                         AssemblyName = assemblyName;
31                         TypeName = typeName;
32                         applicationUrl = appUrl;
33                 }
34
35                 public string ApplicationUrl {
36                         get { return applicationUrl; }
37                 }
38
39                 public IContextAttribute [] ContextAttributes {
40                         get { return null; }
41                         set { } // This is not implemented in the MS runtime yet.
42                 }
43
44                 public Type ObjectType {
45                         get { return obj_type; }
46                 }
47
48                 public override string ToString ()
49                 {
50                         return TypeName + AssemblyName + ApplicationUrl;
51                 }
52         }
53 }