Skip to content

Commit

Permalink
Revert US culture hack (#3474)
Browse files Browse the repository at this point in the history
* revert the hack

* no message
  • Loading branch information
weralabaj authored Nov 30, 2017
1 parent 92888d6 commit 2a12290
Show file tree
Hide file tree
Showing 123 changed files with 1 addition and 741 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.AzureBlobStorageDataBus.Receiver";
var endpointConfiguration = new EndpointConfiguration("Samples.AzureBlobStorageDataBus.Receiver");
var dataBus = endpointConfiguration.UseDataBus<AzureDataBus>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.AzureBlobStorageDataBus.Sender";
var endpointConfiguration = new EndpointConfiguration("Samples.AzureBlobStorageDataBus.Sender");

Expand Down
6 changes: 0 additions & 6 deletions samples/azure/storage-persistence/ASP_2/Client/Program.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples-Azure-StoragePersistence-Client";
var endpointConfiguration = new EndpointConfiguration("Samples-Azure-StoragePersistence-Client");
endpointConfiguration.UseSerialization<NewtonsoftSerializer>();
Expand Down
6 changes: 0 additions & 6 deletions samples/azure/storage-persistence/ASP_2/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples-Azure-StoragePersistence-Server";

#region config
Expand Down
6 changes: 0 additions & 6 deletions samples/azure/storage-queues/ASQ_8/Endpoint1/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Features;
Expand All @@ -10,10 +8,6 @@ class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

#region endpointName

var endpointName = "Samples.Azure.StorageQueues.Endpoint1.With.A.Very.Long.Name.And.Invalid.Characters";
Expand Down
6 changes: 0 additions & 6 deletions samples/azure/storage-queues/ASQ_8/Endpoint2/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Features;
Expand All @@ -10,10 +8,6 @@ class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

var endpointName = "Samples.Azure.StorageQueues.Endpoint2";
Console.Title = endpointName;
var endpointConfiguration = new EndpointConfiguration(endpointName);
Expand Down
6 changes: 0 additions & 6 deletions samples/callbacks/Callbacks_3/Receiver/Program.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.Callbacks.Receiver";
var endpointConfiguration = new EndpointConfiguration("Samples.Callbacks.Receiver");
endpointConfiguration.UsePersistence<LearningPersistence>();
Expand Down
6 changes: 0 additions & 6 deletions samples/callbacks/Callbacks_3/Sender/Program.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.Callbacks.Sender";
var endpointConfiguration = new EndpointConfiguration("Samples.Callbacks.Sender");
endpointConfiguration.UsePersistence<LearningPersistence>();
Expand Down
6 changes: 0 additions & 6 deletions samples/callbacks/Callbacks_3/WebSender/Global.asax.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
Expand All @@ -13,10 +11,6 @@ public class MvcApplication :

protected void Application_Start()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

StartBus().GetAwaiter().GetResult();
AreaRegistration.RegisterAllAreas();
RouteTable.Routes.MapRoute(
Expand Down
6 changes: 0 additions & 6 deletions samples/custom-transport/Core_7/Endpoint1/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Features;
Expand All @@ -9,10 +7,6 @@ class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.CustomTransport.Endpoint1";
var endpointConfiguration = new EndpointConfiguration("Samples.CustomTransport.Endpoint1");

Expand Down
6 changes: 0 additions & 6 deletions samples/custom-transport/Core_7/Endpoint2/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Features;
Expand All @@ -9,10 +7,6 @@ class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.CustomTransport.Endpoint2";
var endpointConfiguration = new EndpointConfiguration("Samples.CustomTransport.Endpoint2");
endpointConfiguration.UseTransport<FileTransport>();
Expand Down
6 changes: 0 additions & 6 deletions samples/delayed-delivery/Core_7/Client/Program.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.DelayedDelivery.Client";
var endpointConfiguration = new EndpointConfiguration("Samples.DelayedDelivery.Client");
endpointConfiguration.UsePersistence<LearningPersistence>();
Expand Down
6 changes: 0 additions & 6 deletions samples/delayed-delivery/Core_7/Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.DelayedDelivery.Server";
var endpointConfiguration = new EndpointConfiguration("Samples.DelayedDelivery.Server");
endpointConfiguration.UsePersistence<LearningPersistence>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Autofac;
using NServiceBus;
Expand All @@ -9,10 +7,6 @@ static class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.Autofac";

#region ContainerConfiguration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
Expand All @@ -10,10 +8,6 @@ static class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.Castle";

#region ContainerConfiguration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;
using StructureMap;
Expand All @@ -9,10 +7,6 @@ static class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.StructureMap";

#region ContainerConfiguration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.Encryption.Endpoint1";
var endpointConfiguration = new EndpointConfiguration("Samples.Encryption.Endpoint1");
#region enableEncryption
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.Encryption.Endpoint2";
var endpointConfiguration = new EndpointConfiguration("Samples.Encryption.Endpoint2");
endpointConfiguration.ConfigurationEncryption();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.Encryption.Endpoint1";
var endpointConfiguration = new EndpointConfiguration("Samples.Encryption.Endpoint1");
#region enableEncryption
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.Encryption.Endpoint2";
var endpointConfiguration = new EndpointConfiguration("Samples.Encryption.Endpoint2");
endpointConfiguration.ConfigurationEncryption();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.MessageBodyEncryption.Endpoint2";
var endpointConfiguration = new EndpointConfiguration("Samples.MessageBodyEncryption.Endpoint1");
endpointConfiguration.UseTransport<LearningTransport>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using NServiceBus;

class Program
{
static async Task Main()
{
//required to prevent possible occurrence of .NET Core issue https://github.com/dotnet/coreclr/issues/12668
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Console.Title = "Samples.MessageBodyEncryption.Endpoint2";
var endpointConfiguration = new EndpointConfiguration("Samples.MessageBodyEncryption.Endpoint2");
endpointConfiguration.UseTransport<LearningTransport>();
Expand Down
Loading

0 comments on commit 2a12290

Please sign in to comment.