File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Http/samples/MinimalSample
Mvc/Mvc.Core/src/DependencyInjection Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
// Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
- using System . Diagnostics ;
5
4
using System . Reflection ;
6
5
using Microsoft . AspNetCore . Http . HttpResults ;
7
6
using Microsoft . AspNetCore . Http . Metadata ;
10
9
var builder = WebApplication . CreateBuilder ( args ) ;
11
10
var app = builder . Build ( ) ;
12
11
13
- app . Logger . LogInformation ( $ "Current process ID: { Process . GetCurrentProcess ( ) . Id } ") ;
12
+ app . Logger . LogInformation ( $ "Current process ID: { Environment . ProcessId } ") ;
14
13
15
14
string Plaintext ( ) => "Hello, World!" ;
16
15
app . MapGet ( "/plaintext" , Plaintext ) ;
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ internal static void AddMvcCoreServices(IServiceCollection services)
183
183
//
184
184
// Action Invoker
185
185
//
186
- // The IActionInvokerFactory is cachable
186
+ // The IActionInvokerFactory is cacheable
187
187
services . TryAddSingleton < IActionInvokerFactory , ActionInvokerFactory > ( ) ;
188
188
services . TryAddEnumerable (
189
189
ServiceDescriptor . Transient < IActionInvokerProvider , ControllerActionInvokerProvider > ( ) ) ;
You can’t perform that action at this time.
0 commit comments