Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Enable flowing of culture via async local on Core CLR #1210

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
5 changes: 5 additions & 0 deletions src/kre.host/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public Task<int> Main(string[] args)
string applicationBaseDirectory = AppContext.BaseDirectory;
#endif

#if ASPNETCORE50
// Enable flowing of culture across threads using async local
AppContext.SetSwitch("Switch.System.Globalization.NoAsyncCurrentCulture", false);
#endif

var framework = Environment.GetEnvironmentVariable("TARGET_FRAMEWORK") ?? Environment.GetEnvironmentVariable(EnvironmentNames.Framework);
var configuration = Environment.GetEnvironmentVariable("TARGET_CONFIGURATION") ?? Environment.GetEnvironmentVariable(EnvironmentNames.Configuration) ?? "Debug";

Expand Down