importing messaging-2008 branch to trunk [continued]
[mono.git] / mcs / class / System.Web / System.Web.UI / StaticPartialCachingControl.cs
index 4ab2af9870b074b89529a68e09737816dffecc13..031049d1b9b49b3bf1da28c138f9c9b4bacda79f 100644 (file)
@@ -5,8 +5,7 @@
 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
 //
 // (C) 2003 Andreas Nahr
-//
-
+// 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.
 //
 
-using System;
 using System.ComponentModel;
+using System.Security.Permissions;
 
-namespace System.Web.UI
-{
-       public class StaticPartialCachingControl : BasePartialCachingControl
-       {
+namespace System.Web.UI {
 
-               private BuildMethod buildMethod;
+       // CAS
+       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+       [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+       public class StaticPartialCachingControl : BasePartialCachingControl {
+
+               BuildMethod buildMethod;
 
                public StaticPartialCachingControl (string ctrlID, string guid, int duration,
                                string varyByParams, string varyByControls, string varyByCustom,
@@ -52,6 +53,18 @@ namespace System.Web.UI
                        this.buildMethod = buildMethod;
                }
 
+#if NET_2_0
+               [MonoTODO("Consider sqlDependency parameter")]
+               public static void BuildCachedControl (Control parent, string ctrlID, string guid,
+                               int duration, string varyByParams, string varyByControls,
+                               string varyByCustom, string sqlDependency, BuildMethod buildMethod)
+               {
+                       BuildCachedControl (parent, ctrlID, guid,
+                               duration, varyByParams, varyByControls,
+                               varyByCustom, buildMethod);
+               }
+#endif
+
                public static void BuildCachedControl (Control parent, string ctrlID, string guid,
                                int duration, string varyByParams, string varyByControls,
                                string varyByCustom, BuildMethod buildMethod)