2 // System.Web.UI.StaticPartialCachingControl.cs
5 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 // (C) 2003 Andreas Nahr
11 using System.ComponentModel;
13 namespace System.Web.UI
15 public class StaticPartialCachingControl : BasePartialCachingControl
18 private BuildMethod buildMethod;
21 public StaticPartialCachingControl (string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod)
23 // TODO add the missing items to base class
24 this.buildMethod = buildMethod;
27 public static void BuildCachedControl (Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod)
29 StaticPartialCachingControl NewControl =
30 new StaticPartialCachingControl (ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, buildMethod);
31 parent.Controls.Add (NewControl);
35 internal override Control CreateControl()
37 //TODO invoke the build method
38 //return buildMethod.Invoke ();
39 throw new NotImplementedException ();