Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit b2e9365

Browse files
committed
Disable instrumentation pass with 3.0 configuration
1 parent fc3f45b commit b2e9365

32 files changed

+22
-1075
lines changed

src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InstrumentationPass.cs

Lines changed: 0 additions & 125 deletions
This file was deleted.

src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensions.cs

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -41,50 +41,8 @@ public static void Register(RazorProjectEngineBuilder builder)
4141
builder.Features.Add(new RazorPageDocumentClassifierPass());
4242
builder.Features.Add(new MvcViewDocumentClassifierPass());
4343
builder.Features.Add(new AssemblyAttributeInjectionPass());
44-
builder.Features.Add(new InstrumentationPass());
4544

4645
builder.SetImportFeature(new MvcImportProjectFeature());
4746
}
48-
49-
#region Obsolete
50-
[Obsolete("This method is obsolete and will be removed in a future version.")]
51-
public static void Register(IRazorEngineBuilder builder)
52-
{
53-
if (builder == null)
54-
{
55-
throw new ArgumentNullException(nameof(builder));
56-
}
57-
58-
InjectDirective.Register(builder);
59-
ModelDirective.Register(builder);
60-
NamespaceDirective.Register(builder);
61-
PageDirective.Register(builder);
62-
63-
FunctionsDirective.Register(builder);
64-
InheritsDirective.Register(builder);
65-
SectionDirective.Register(builder);
66-
67-
builder.Features.Add(new DefaultTagHelperDescriptorProvider());
68-
builder.Features.Add(new ViewComponentTagHelperDescriptorProvider());
69-
70-
builder.AddTargetExtension(new ViewComponentTagHelperTargetExtension());
71-
builder.AddTargetExtension(new TemplateTargetExtension()
72-
{
73-
TemplateTypeName = "global::Microsoft.AspNetCore.Mvc.Razor.HelperResult",
74-
});
75-
76-
builder.Features.Add(new ModelExpressionPass());
77-
builder.Features.Add(new PagesPropertyInjectionPass());
78-
builder.Features.Add(new ViewComponentTagHelperPass());
79-
builder.Features.Add(new RazorPageDocumentClassifierPass());
80-
builder.Features.Add(new MvcViewDocumentClassifierPass());
81-
82-
if (!builder.DesignTime)
83-
{
84-
builder.Features.Add(new AssemblyAttributeInjectionPass());
85-
builder.Features.Add(new InstrumentationPass());
86-
}
87-
}
88-
#endregion
8947
}
9048
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[
2+
{
3+
"TypeId": "public static class Microsoft.AspNetCore.Mvc.Razor.Extensions.RazorExtensions",
4+
"MemberId": "public static System.Void Register(Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder builder)",
5+
"Kind": "Removal"
6+
},
7+
{
8+
"TypeId": "public class Microsoft.AspNetCore.Mvc.Razor.Extensions.InstrumentationPass : Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase, Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass",
9+
"Kind": "Removal"
10+
}
11+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[
2+
{
3+
"TypeId": "public static class Microsoft.AspNetCore.Mvc.Razor.Extensions.RazorExtensions",
4+
"MemberId": "public static System.Void Register(Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder builder)",
5+
"Kind": "Removal"
6+
},
7+
{
8+
"TypeId": "public class Microsoft.AspNetCore.Mvc.Razor.Extensions.InstrumentationPass : Microsoft.AspNetCore.Razor.Language.IntermediateNodePassBase, Microsoft.AspNetCore.Razor.Language.IRazorOptimizationPass",
9+
"Kind": "Removal"
10+
}
11+
]

0 commit comments

Comments
 (0)