2 // System.Runtime.Remoting.ActivatedServiceTypeEntry.cs
4 // AUthor: Duncan Mak (duncan@ximian.com)
6 // 2002 (C) Copyright. Ximian, Inc.
10 using System.Reflection;
11 using System.Runtime.Remoting;
12 using System.Runtime.Remoting.Contexts;
14 namespace System.Runtime.Remoting {
16 public class ActivatedServiceTypeEntry : TypeEntry
20 public ActivatedServiceTypeEntry (Type type)
22 AssemblyName = type.Assembly.FullName;
23 TypeName = type.FullName;
27 public ActivatedServiceTypeEntry (string typeName, string assemblyName)
29 AssemblyName = assemblyName;
31 Assembly a = Assembly.Load (assemblyName);
32 obj_type = a.GetType (typeName);
35 public IContextAttribute [] ContextAttributes {
37 set { } // This is not implemented in the MS runtime yet.
40 public Type ObjectType {
41 get { return obj_type; }
45 public override string ToString ()
47 return AssemblyName + TypeName;