asp.net - Do web.config's globalization settings affect non-http requests? -


in asp.net application set

<system.web><globalization culture="pl-pl" uiculture="pl-pl" /> 

to have numbers , dates in culture.

surprisingly noticed methods invoked job scheduler (quartz library) use en-us? why that?

web.config globalization relatively simple - sets thread locale when request being processed. seem invoking methods non-asp.net thread, using quartz.net scheduler. invoker has set thread locale before calling methods, in job code, set locale manually, call methods need, so:

thread.currentthread.currentculture = new cultureinfo("pl-pl"); thread.currentthread.currentuiculture = new cultureinfo("pl-pl"); 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -