Merge pull request #3962 from mkorkalo/fix_MonoBtlsContext_memory_leak
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / HttpHandlerActionCollection.cs
index 56821fd81c994e70baeeed69baa1821a15762d9a..6ef5dddbce83fad0a9ccc3b1779a89f0ae40eb60 100644 (file)
@@ -28,7 +28,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 
 using System;
 using System.Configuration;
@@ -51,11 +50,13 @@ namespace System.Web.Configuration
                        
                public void Add (HttpHandlerAction httpHandlerAction)
                {
+                       HttpApplication.ClearHandlerCache ();
                        BaseAdd (httpHandlerAction);
                }
 
                public void Clear ()
                {
+                       HttpApplication.ClearHandlerCache ();
                        BaseClear ();
                }
 
@@ -76,16 +77,19 @@ namespace System.Web.Configuration
 
                public void Remove (string verb, string path)
                {
+                       HttpApplication.ClearHandlerCache ();
                        BaseRemove (path + "-" + verb);
                }
 
                public void Remove (HttpHandlerAction action)
                {
+                       HttpApplication.ClearHandlerCache ();
                        BaseRemove (action.Path + "-" + action.Verb);
                }
 
                public void RemoveAt (int index)
                {
+                       HttpApplication.ClearHandlerCache ();
                        BaseRemoveAt (index);
                }
 
@@ -93,7 +97,7 @@ namespace System.Web.Configuration
                        get { return ConfigurationElementCollectionType.AddRemoveClearMapAlternate; }
                }
 
-               protected override ConfigurationPropertyCollection Properties {
+               protected internal override ConfigurationPropertyCollection Properties {
                        get { return properties; }
                }
 
@@ -108,4 +112,3 @@ namespace System.Web.Configuration
        }
 }
 
-#endif