Skip to content

Commit 96ba5bd

Browse files
authored
Fix Http MinimalSample (#49174)
* Fix Http MinimalSample * Remove unnecessary using * fix a typo --------- Co-authored-by: Nikita Balabaev <[email protected]>
1 parent 51c1ada commit 96ba5bd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Http/samples/MinimalSample/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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 System.Diagnostics;
54
using System.Reflection;
65
using Microsoft.AspNetCore.Http.HttpResults;
76
using Microsoft.AspNetCore.Http.Metadata;
@@ -10,7 +9,7 @@
109
var builder = WebApplication.CreateBuilder(args);
1110
var app = builder.Build();
1211

13-
app.Logger.LogInformation($"Current process ID: {Process.GetCurrentProcess().Id}");
12+
app.Logger.LogInformation($"Current process ID: {Environment.ProcessId}");
1413

1514
string Plaintext() => "Hello, World!";
1615
app.MapGet("/plaintext", Plaintext);

src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ internal static void AddMvcCoreServices(IServiceCollection services)
183183
//
184184
// Action Invoker
185185
//
186-
// The IActionInvokerFactory is cachable
186+
// The IActionInvokerFactory is cacheable
187187
services.TryAddSingleton<IActionInvokerFactory, ActionInvokerFactory>();
188188
services.TryAddEnumerable(
189189
ServiceDescriptor.Transient<IActionInvokerProvider, ControllerActionInvokerProvider>());

0 commit comments

Comments
 (0)