// 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,
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)