StaticPartialCachingControl.cs 1.2 KB

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