Sfoglia il codice sorgente

2002-07-25 Tim Coleman <[email protected]>
* ProcessModelInfo.cs:
New class added
* HttpParseException.cs:
* HttpCompileException.cs:
* HttpUnhandledException.cs:
Internal constructors added to these

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

Tim Coleman 23 anni fa
parent
commit
1971aebdff

+ 8 - 0
mcs/class/System.Web/System.Web/ChangeLog

@@ -1,3 +1,11 @@
+2002-07-25  Tim Coleman <[email protected]>
+	* ProcessModelInfo.cs:
+		New class added
+	* HttpParseException.cs:
+	* HttpCompileException.cs:
+	* HttpUnhandledException.cs:
+		Internal constructors added to these
+
 2002-07-24  Tim Coleman <[email protected]>
 	* ProcessInfo.cs: 
 		Fix constructor, reference to shutdownreason.

+ 20 - 4
mcs/class/System.Web/System.Web/HttpCompileException.cs

@@ -12,16 +12,32 @@ using System.CodeDom.Compiler;
 namespace System.Web {
 	public sealed class HttpCompileException : HttpException {
 
+		#region Fields
+
+		CompilerResults results;
+		string sourceCode;
+
+		#endregion // Fields
+
+		#region Constructors
+
+		internal HttpCompileException (CompilerResults results, string sourceCode)
+			: base ()
+		{
+			this.results = results;
+			this.sourceCode = sourceCode;
+		}
+
+		#endregion // Constructors
+
 		#region Properties
 
 		public CompilerResults Results {
-			[MonoTODO]
-			get { throw new NotImplementedException (); }
+			get { return results; }
 		}
 
 		public string SourceCode {
-			[MonoTODO]
-			get { throw new NotImplementedException (); }
+			get { return sourceCode; }
 		}
 
 		#endregion // Properties

+ 21 - 4
mcs/class/System.Web/System.Web/HttpParseException.cs

@@ -10,16 +10,33 @@
 namespace System.Web {
 	public sealed class HttpParseException : HttpException {
 
+		#region Fields
+		
+		string fileName;
+		int line;
+
+		#endregion // Fields
+
+		#region Constructors
+
+		[MonoTODO ("Figure out what to do with this.")]
+		internal HttpParseException (string message, Exception innerException, string sourceCode, string fileName, int line)
+			: base (message, innerException)
+		{
+			this.fileName = fileName;
+			this.line = line;
+		}
+
+		#endregion // Constructors
+
 		#region Properties
 
 		public string FileName {
-			[MonoTODO]
-			get { throw new NotImplementedException (); }
+			get { return fileName; }
 		}
 
 		public int Line {
-			[MonoTODO]
-			get { throw new NotImplementedException (); }
+			get { return line; }
 		}
 
 		#endregion // Properties

+ 14 - 0
mcs/class/System.Web/System.Web/HttpUnhandledException.cs

@@ -10,5 +10,19 @@
 namespace System.Web {
 	public sealed class HttpUnhandledException : HttpException {
 
+		#region Constructors
+
+		internal HttpUnhandledException (string message, Exception innerException)
+			: base (message, innerException)
+		{
+		}
+
+		[MonoTODO ("What does this do?")]
+		internal HttpUnhandledException (string message, string x, Exception innerException)
+			: base (message, innerException)
+		{
+		}
+
+		#endregion
 	}
 }

+ 52 - 0
mcs/class/System.Web/System.Web/ProcessModelInfo.cs

@@ -0,0 +1,52 @@
+// 
+// System.Web.ProcessModelInfo
+//
+// Author:
+//   Tim Coleman ([email protected])
+//
+// Copyright (C) Tim Coleman, 2002
+
+using System;
+
+namespace System.Web {
+	public class ProcessModelInfo {
+
+		#region Fields
+
+		#endregion
+
+		#region Constructors
+
+		public ProcessModelInfo ()
+		{
+		}
+
+		#endregion
+
+		#region Properties
+
+		[MonoTODO ("Retrieve appropriate variables from worker")]
+		public static ProcessInfo GetCurrentProcessInfo ()
+		{
+			HttpContext httpContext;
+			DateTime startTime;
+			TimeSpan age;
+			int processID;
+			int requestCount;
+			ProcessStatus status;
+			ProcessShutdownReason shutdownReason;
+			int peakMemoryUsed;
+
+			httpContext = HttpContext.Current;
+			return new ProcessInfo (startTime, age, processID, requestCount, status, shutdownReason, peakMemoryUsed);
+		}
+
+		[MonoTODO ("Retrieve process information.")]
+		public static ProcessInfo[] GetHistory ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		#endregion // Methods
+	}
+}