2003-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web.UI / StaticPartialCachingControl.cs
1 //
2 // System.Web.UI.StaticPartialCachingControl.cs
3 //
4 // Author:
5 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
6 //
7 // (C) 2003 Andreas Nahr
8 //
9
10 using System;
11 using System.ComponentModel;
12
13 namespace System.Web.UI
14 {
15         public class StaticPartialCachingControl : BasePartialCachingControl
16         {
17
18                 private BuildMethod buildMethod;
19
20                 [MonoTODO]
21                 public StaticPartialCachingControl (string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod)
22                 {
23                         // TODO add the missing items to base class
24                         this.buildMethod = buildMethod;
25                 }
26
27                 public static void BuildCachedControl (Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, BuildMethod buildMethod)
28                 {
29                         StaticPartialCachingControl NewControl =
30                                 new StaticPartialCachingControl (ctrlID, guid, duration, varyByParams, varyByControls, varyByCustom, buildMethod);
31                         parent.Controls.Add (NewControl);
32                 }
33
34                 [MonoTODO]
35                 internal override Control CreateControl()
36                 {
37                         //TODO invoke the build method
38                         //return buildMethod.Invoke ();
39                         throw new NotImplementedException ();
40                 }
41         }
42 }