Skip to content

Commit c0da476

Browse files
committed
Update WebHostBuilder.cs
1 parent 511e8ef commit c0da476

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

src/Hosting/Hosting/src/GenericHost/GenericWebHostedService.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,6 @@ namespace Microsoft.AspNetCore.Hosting
2121
{
2222
internal sealed partial class GenericWebHostService : IHostedService
2323
{
24-
<<<<<<< HEAD
25-
public GenericWebHostService(
26-
IOptions<GenericWebHostServiceOptions> options,
27-
IServer server,
28-
ILoggerFactory loggerFactory,
29-
DiagnosticListener diagnosticListener,
30-
ActivitySource activitySource,
31-
IHttpContextFactory httpContextFactory,
32-
IApplicationBuilderFactory applicationBuilderFactory,
33-
IEnumerable<IStartupFilter> startupFilters,
34-
IConfiguration configuration,
35-
IWebHostEnvironment hostingEnvironment)
36-
=======
3724
public GenericWebHostService(IOptions<GenericWebHostServiceOptions> options,
3825
IServer server,
3926
ILoggerFactory loggerFactory,
@@ -45,7 +32,6 @@ public GenericWebHostService(IOptions<GenericWebHostServiceOptions> options,
4532
IEnumerable<IStartupFilter> startupFilters,
4633
IConfiguration configuration,
4734
IWebHostEnvironment hostingEnvironment)
48-
>>>>>>> 73ed5781a2 (Fix tests)
4935
{
5036
Options = options.Value;
5137
Server = server;

src/Hosting/Hosting/src/Internal/HostingApplicationDiagnostics.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Collections;
66
using System.Collections.Generic;
77
using System.Diagnostics;
8+
using System.Globalization;
89
using System.Runtime.CompilerServices;
910
using Microsoft.AspNetCore.Http;
1011
using Microsoft.AspNetCore.Http.Features;

src/Hosting/Hosting/src/WebHostBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ private IServiceCollection BuildCommonServices(out AggregateException? hostingSt
293293
services.TryAddSingleton(sp => new DiagnosticListener("Microsoft.AspNetCore"));
294294
services.TryAddSingleton<DiagnosticSource>(sp => sp.GetRequiredService<DiagnosticListener>());
295295
services.TryAddSingleton(sp => new ActivitySource("Microsoft.AspNetCore"));
296+
services.TryAddSingleton(sp => TextMapPropagator.Default);
296297

297298
services.AddTransient<IApplicationBuilderFactory, ApplicationBuilderFactory>();
298299
services.AddTransient<IHttpContextFactory, DefaultHttpContextFactory>();

0 commit comments

Comments
 (0)