Skip to content

Commit 31a8a9f

Browse files
committed
Call AddValidation
1 parent cf6ff50 commit 31a8a9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Tools/dotnet-monitor/HostBuilder/HostBuilderHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using Microsoft.AspNetCore.Http.Validation.Generated;
45
using Microsoft.AspNetCore.Hosting;
56
using Microsoft.Diagnostics.Monitoring.WebApi;
67
using Microsoft.Diagnostics.Tools.Monitor.Auth;
@@ -129,6 +130,7 @@ public static IHostBuilder CreateHostBuilder(HostBuilderSettings settings)
129130
services.AddSingleton(listenResults);
130131
services.AddSingleton<IStartupFilter, AddressListenResultsStartupFilter>();
131132
services.AddHostedService<StartupLoggingHostedService>();
133+
MyExtensions.AddValidation(services);
132134
})
133135
.ConfigureKestrel((context, options) =>
134136
{

0 commit comments

Comments
 (0)