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
Post a Comment