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 LocalDataStoreSlot.cs


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System LocalDataStoreSlot.cs,NONE,1.1 Activator.cs,1.9,1.10 AppDomain.cs,1.15,1.16 MarshalByRefObject.cs,1.4,1.5 _AppDomain.cs,1.3,1.4
Date: Thu, 17 Apr 2003 06:36:39 -0400

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

Modified Files:
        Activator.cs AppDomain.cs MarshalByRefObject.cs _AppDomain.cs 
Added Files:
        LocalDataStoreSlot.cs 
Log Message:


Stub out a large number of classes under the "System.Runtime.Remoting"
namespace; add the "CONFIG_REMOTING" define to selection compilation of
remoting.


--- NEW FILE ---
/*
 * LocalDataStoreSlot.cs - Implementation of the
 *                      "System.LocalDataStoreSlot" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System
{

#if !ECMA_COMPAT

public sealed class LocalDataStoreSlot
{
        // Constructor.
        [TODO]
        internal LocalDataStoreSlot()
                        {
                                // TODO
                        }

        // Destructor.
        [TODO]
        ~LocalDataStoreSlot()
                        {
                                // TODO
                        }

}; // class LocalDataStoreSlot

#endif // !ECMA_COMPAT

}; // namespace System

Index: Activator.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Activator.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** Activator.cs        15 Apr 2003 11:22:32 -0000      1.9
--- Activator.cs        17 Apr 2003 10:36:07 -0000      1.10
***************
*** 36,39 ****
--- 36,42 ----
  sealed class Activator
  {
+ 
+ #if CONFIG_REMOTING
+ 
        // Create a COM object instance.
        public static ObjectHandle CreateComInstanceFrom
***************
*** 54,57 ****
--- 57,62 ----
        }
  
+ #endif // CONFIG_REMOTING
+ 
        // Create an object instance from a type using the default constructor.
        public static Object CreateInstance(Type type)
***************
*** 112,115 ****
--- 117,122 ----
        }
  
+ #if CONFIG_REMOTING
+ 
        // Create an object instance from a type in another assembly.
        public static ObjectHandle CreateInstance
***************
*** 196,199 ****
--- 203,208 ----
                                                        culture, 
activationAttributes));
        }
+ 
+ #endif // CONFIG_REMOTING
  
  }; // class Activator

Index: AppDomain.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/AppDomain.cs,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** AppDomain.cs        15 Apr 2003 05:13:43 -0000      1.15
--- AppDomain.cs        17 Apr 2003 10:36:07 -0000      1.16
***************
*** 242,245 ****
--- 242,249 ----
                        }
  
+ #endif // !ECMA_COMPAT
+ 
+ #if CONFIG_REMOTING
+ 
        // Create an instance of an assembly and unwrap its handle.
        public Object CreateInstanceAndUnwrap(String assemblyName, String 
typeName)
***************
*** 325,328 ****
--- 329,350 ----
                        }
  
+       // Execute a delegate in a foreign application domain.
+       [TODO]
+       public void DoCallBack(CrossAppDomainDelegate theDelegate)
+                       {
+                               // TODO
+                       }
+ 
+       // Give the application domain an infinite lifetime service.
+       public override Object InitializeLifetimeService()
+                       {
+                               // Always returns null.
+                               return null;
+                       }
+ 
+ #endif // CONFIG_REMOTING
+ 
+ #if !ECMA_COMPAT
+ 
        // Define a dynamic assembly builder within this domain.
        public AssemblyBuilder DefineDynamicAssembly
***************
*** 424,434 ****
                        }
  
-       // Execute a delegate in a foreign application domain.
-       [TODO]
-       public void DoCallBack(CrossAppDomainDelegate theDelegate)
-                       {
-                               // TODO
-                       }
- 
        // Execute a particular assembly within this application domain.
        public int ExecuteAssembly(String assemblyFile)
--- 446,449 ----
***************
*** 464,474 ****
                        {
                                return items[name];
-                       }
- 
-       // Give the application domain an infinite lifetime service.
-       public override Object InitializeLifetimeService()
-                       {
-                               // Always returns null.
-                               return null;
                        }
  
--- 479,482 ----

Index: MarshalByRefObject.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/MarshalByRefObject.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** MarshalByRefObject.cs       20 Dec 2001 10:11:39 -0000      1.4
--- MarshalByRefObject.cs       17 Apr 2003 10:36:07 -0000      1.5
***************
*** 30,34 ****
        protected MarshalByRefObject() : base() {}
  
! #if !ECMA_COMPAT
  
        // Create a marshalable reference for this object.
--- 30,34 ----
        protected MarshalByRefObject() : base() {}
  
! #if CONFIG_REMOTING
  
        // Create a marshalable reference for this object.
***************
*** 55,59 ****
                        }
  
! #endif // !ECMA_COMPAT
  
  }; // class MarshalByRefObject
--- 55,59 ----
                        }
  
! #endif // CONFIG_REMOTING
  
  }; // class MarshalByRefObject

Index: _AppDomain.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/_AppDomain.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** _AppDomain.cs       16 Apr 2003 03:17:55 -0000      1.3
--- _AppDomain.cs       17 Apr 2003 10:36:07 -0000      1.4
***************
*** 82,107 ****
        void ClearShadowCopyPath();
  
-       // Create an instance of a type within this application domain.
-       ObjectHandle CreateInstance(String assemblyName, String typeName);
-       ObjectHandle CreateInstance(String assemblyName, String typeName,
-                                                               Object[] 
activationAttributes);
-       ObjectHandle CreateInstance(String assemblyName, String typeName,
-                                                               bool 
ignoreCase, BindingFlags bindingAttr,
-                                                               Binder binder, 
Object[] args,
-                                                               CultureInfo 
culture,
-                                                               Object[] 
activationAttributes,
-                                                               Evidence 
securityAttributes);
- 
-       // Create a remote instance of a type within this application domain.
-       ObjectHandle CreateInstanceFrom(String assemblyName, String typeName);
-       ObjectHandle CreateInstanceFrom(String assemblyName, String typeName,
-                                                                   Object[] 
activationAttributes);
-       ObjectHandle CreateInstanceFrom(String assemblyName, String typeName,
-                                                                   bool 
ignoreCase, BindingFlags bindingAttr,
-                                                                   Binder 
binder, Object[] args,
-                                                                   CultureInfo 
culture,
-                                                                   Object[] 
activationAttributes,
-                                                                   Evidence 
securityAttributes);
- 
        // Define a dynamic assembly within this application domain.
        AssemblyBuilder DefineDynamicAssembly
--- 82,85 ----
***************
*** 145,151 ****
                                 bool isSynchronized);
  
-       // Execute a delegate in a foreign application domain.
-       void DoCallBack(CrossAppDomainDelegate theDelegate);
- 
        // Execute a particular assembly within this application domain.
        int ExecuteAssembly(String assemblyFile);
--- 123,126 ----
***************
*** 160,169 ****
        Object GetData(String name);
  
-       // Get an object for controlling the lifetime service.
-       Object GetLifetimeService();
- 
-       // Give the application domain an infinite lifetime service.
-       Object InitializeLifetimeService();
- 
        // Load an assembly into this application domain by name.
        Assembly Load(AssemblyName assemblyRef);
--- 135,138 ----
***************
*** 218,221 ****
--- 187,225 ----
  
  #endif // !ECMA_COMPAT
+ 
+ #if CONFIG_REMOTING
+ 
+       // Create an instance of a type within this application domain.
+       ObjectHandle CreateInstance(String assemblyName, String typeName);
+       ObjectHandle CreateInstance(String assemblyName, String typeName,
+                                                               Object[] 
activationAttributes);
+       ObjectHandle CreateInstance(String assemblyName, String typeName,
+                                                               bool 
ignoreCase, BindingFlags bindingAttr,
+                                                               Binder binder, 
Object[] args,
+                                                               CultureInfo 
culture,
+                                                               Object[] 
activationAttributes,
+                                                               Evidence 
securityAttributes);
+ 
+       // Create a remote instance of a type within this application domain.
+       ObjectHandle CreateInstanceFrom(String assemblyName, String typeName);
+       ObjectHandle CreateInstanceFrom(String assemblyName, String typeName,
+                                                                   Object[] 
activationAttributes);
+       ObjectHandle CreateInstanceFrom(String assemblyName, String typeName,
+                                                                   bool 
ignoreCase, BindingFlags bindingAttr,
+                                                                   Binder 
binder, Object[] args,
+                                                                   CultureInfo 
culture,
+                                                                   Object[] 
activationAttributes,
+                                                                   Evidence 
securityAttributes);
+ 
+       // Execute a delegate in a foreign application domain.
+       void DoCallBack(CrossAppDomainDelegate theDelegate);
+ 
+       // Get an object for controlling the lifetime service.
+       Object GetLifetimeService();
+ 
+       // Give the application domain an infinite lifetime service.
+       Object InitializeLifetimeService();
+ 
+ #endif // CONFIG_REMOTING
  
  }; // interface _AppDomain





reply via email to

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