fix: Forces InvariantCulture on server start for DefaultThreadCurrentCulture (#1988)
Co-authored-by: Stefano Merotta <97297186+stefanomerotta@users.noreply.github.com>
This commit is contained in:
parent
dabaa1eb5a
commit
b475e17c92
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
|
@ -350,6 +351,8 @@ public static class Core
|
|||
|
||||
public static void Setup(Assembly applicationAssembly, Process process)
|
||||
{
|
||||
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
|
||||
|
||||
Process = process;
|
||||
ApplicationAssembly = applicationAssembly;
|
||||
Assembly = Assembly.GetAssembly(typeof(Core));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue