Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Web / Configuration / HandlerFactoryCache.cs
index b6fe76106fe9ffd397157ea8c8effcefdcd31bbc..c4a5de247b91848f220ffa297f461762e2d48b7a 100644 (file)
@@ -15,6 +15,7 @@ namespace System.Web.Configuration {
     using System.Web.Compilation;
     using System.Security;
     using System.Security.Permissions;
+    using System.Web;
 
     /*
      * An object to cache a factory
@@ -37,6 +38,7 @@ namespace System.Web.Configuration {
             else {
                 throw new HttpException(SR.GetString(SR.Type_not_factory_or_handler, instance.GetType().FullName));
             }
+            TelemetryLogger.LogHttpHandler(instance.GetType());
         }
 
         internal HandlerFactoryCache(HttpHandlerAction mapping) {
@@ -54,6 +56,7 @@ namespace System.Web.Configuration {
             else {
                 throw new HttpException(SR.GetString(SR.Type_not_factory_or_handler, instance.GetType().FullName));
             }
+            TelemetryLogger.LogHttpHandler(instance.GetType());
         }
 
         internal IHttpHandlerFactory Factory {