dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Activator.cs, 1.12, 1


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Activator.cs, 1.12, 1.13 MarshalByRefObject.cs, 1.6, 1.7
Date: Fri, 22 Aug 2003 20:36:01 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System
In directory subversions:/tmp/cvs-serv28490/runtime/System

Modified Files:
        Activator.cs MarshalByRefObject.cs 
Log Message:


Minor TODO's in "Activator" and "MarshalByRefObject".


Index: Activator.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Activator.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** Activator.cs        23 Apr 2003 11:00:42 -0000      1.12
--- Activator.cs        23 Aug 2003 00:35:59 -0000      1.13
***************
*** 239,257 ****
                return GetObject(type, url, null);
        }
-       [TODO]
        public static Object GetObject(Type type, String url, Object state)
        {
-               // Validate the parameters.
                if(type == null)
                {
                        throw new ArgumentNullException("type");
                }
!               if(url == null)
!               {
!                       throw new ArgumentNullException("url");
!               }
! 
!               // We don't support remoting operations yet.
!               throw new RemotingException();
        }
  
--- 239,249 ----
                return GetObject(type, url, null);
        }
        public static Object GetObject(Type type, String url, Object state)
        {
                if(type == null)
                {
                        throw new ArgumentNullException("type");
                }
!               return RemotingServices.Connect(type, url, state);
        }
  

Index: MarshalByRefObject.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/MarshalByRefObject.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** MarshalByRefObject.cs       23 Apr 2003 11:00:43 -0000      1.6
--- MarshalByRefObject.cs       23 Aug 2003 00:35:59 -0000      1.7
***************
*** 23,26 ****
--- 23,27 ----
  
  using System.Runtime.Remoting;
+ using System.Runtime.Remoting.Lifetime;
  
  public abstract class MarshalByRefObject
***************
*** 40,56 ****
  
        // Get a lifetime service object for this object.
-       [TODO]
        public Object GetLifetimeService()
                        {
!                               // TODO
!                               return null;
                        }
  
        // Initialize the lifetime service for this object.
-       [TODO]
        public virtual Object InitializeLifetimeService()
                        {
!                               // TODO
!                               return null;
                        }
  
--- 41,53 ----
  
        // Get a lifetime service object for this object.
        public Object GetLifetimeService()
                        {
!                               return 
LifetimeServices.GetLifetimeService(this);
                        }
  
        // Initialize the lifetime service for this object.
        public virtual Object InitializeLifetimeService()
                        {
!                               return 
LifetimeServices.InitializeLifetimeService(this);
                        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]