Browse Source

* WebConfigurationHost.cs: Added stubs for missing implementation
of IInternalConfigHost to fix build for 2.0 profile.

svn path=/trunk/mcs/; revision=51460

Gert Driesen 20 years ago
parent
commit
3f3bceed39

+ 5 - 0
mcs/class/System.Web/System.Web.Configuration/ChangeLog

@@ -1,3 +1,8 @@
+2005-10-08 Gert Driesen <[email protected]>
+
+	* WebConfigurationHost.cs: Added stubs for missing implementation
+	of IInternalConfigHost to fix build for 2.0 profile.
+
 2005-10-05 Gonzalo Paniagua Javier <[email protected]>
 
 	* ClientTargetSectionHandler.cs: New file.

+ 54 - 2
mcs/class/System.Web/System.Web.Configuration/WebConfigurationHost.cs

@@ -282,11 +282,23 @@ namespace System.Web.Configuration
 				
 			return new FileStream (streamName, FileMode.Open, FileAccess.Read);
 		}
-		
+
+		[MonoTODO]
+		public virtual Stream OpenStreamForRead (string streamName, bool assertPermissions)
+		{
+			throw new NotImplementedException ();
+		}
+
 		public virtual Stream OpenStreamForWrite (string streamName, string templateStreamName, ref object writeContext)
 		{
 			return new FileStream (streamName, FileMode.Create, FileAccess.Write);
 		}
+
+		[MonoTODO]
+		public virtual Stream OpenStreamForWrite (string streamName, string templateStreamName, ref object writeContext, bool assertPermissions)
+		{
+			throw new NotImplementedException ();
+		}
 		
 		public virtual bool PrefetchAll (string configPath, string streamName)
 		{
@@ -297,7 +309,13 @@ namespace System.Web.Configuration
 		{
 			throw new NotImplementedException ();
 		}
-		
+
+		[MonoTODO]
+		public virtual void RequireCompleteInit (IInternalConfigRecord configRecord)
+		{
+			throw new NotImplementedException ();
+		}
+
 		public virtual object StartMonitoringStreamForChanges (string streamName, StreamChangeCallback callback)
 		{
 			throw new NotImplementedException ();
@@ -318,6 +336,11 @@ namespace System.Web.Configuration
 		{
 		}
 		
+		[MonoTODO]
+		public virtual void WriteCompleted (string streamName, bool success, object writeContext, bool assertPermissions)
+		{
+		}
+
 		public virtual bool SupportsChangeNotifications {
 			get { return false; }
 		}
@@ -333,6 +356,35 @@ namespace System.Web.Configuration
 		public virtual bool SupportsRefresh {
 			get { return false; }
 		}
+
+		[MonoTODO]
+		public virtual bool IsRemote {
+			get { return false; }
+		}
+
+		[MonoTODO]
+		public virtual bool IsFullTrustSectionWithoutAptcaAllowed (IInternalConfigRecord configRecord)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public virtual bool IsInitDelayed (IInternalConfigRecord configRecord)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public virtual bool IsSecondaryRoot (string configPath)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public virtual bool IsTrustedConfigPath (string configPath)
+		{
+			throw new NotImplementedException ();
+		}
 	}
 }