Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Microsoft.Fx.Portability.ObjectModel;
using Microsoft.Fx.Portability.Reporting;
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
Expand Down Expand Up @@ -66,6 +67,9 @@ private static ServiceProvider BuildProvider()
options.FileProviders.Add(fileProvider);
});

var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor");
services.AddSingleton<DiagnosticSource>(diagnosticSource);

services.AddSingleton<ObjectPoolProvider, DefaultObjectPoolProvider>();
services.AddLogging();
services.AddMvc();
Expand Down