initial implementation of 'unify request'
[mono.git] / mcs / class / System.Web / System.Web / ProcessModelInfo.cs
index 39c05b69598e0017bc48053b0c7661276e716937..2afd1f77c7259818b319684a2498d6cd34c6f67b 100644 (file)
@@ -5,7 +5,7 @@
 //   Tim Coleman (tim@timcoleman.com)\r
 //\r
 // Copyright (C) Tim Coleman, 2002\r
-
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 \r
-using System;\r
+using System.Security.Permissions;
 \r
 namespace System.Web {\r
+
+       // CAS
+       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+       [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
        public class ProcessModelInfo {\r
 \r
                #region Fields\r
@@ -47,6 +51,7 @@ namespace System.Web {
                #region Properties\r
 \r
                [MonoTODO ("Retrieve appropriate variables from worker")]\r
+               [AspNetHostingPermission (SecurityAction.Demand, Level = AspNetHostingPermissionLevel.High)]
                public static ProcessInfo GetCurrentProcessInfo ()\r
                {\r
                        DateTime startTime = DateTime.Now;\r
@@ -61,6 +66,7 @@ namespace System.Web {
                }\r
 \r
                [MonoTODO ("Retrieve process information.")]\r
+               [AspNetHostingPermission (SecurityAction.Demand, Level = AspNetHostingPermissionLevel.High)]
                public static ProcessInfo[] GetHistory (int numRecords)\r
                {\r
                        throw new NotImplementedException ();\r