Setting culture for complete appdomain or application

  • Thread starter Thread starter Jeffry van de Vuurst
  • Start date Start date
J

Jeffry van de Vuurst

Hi,

I have a windows service that listens to Microsoft Message Queue. On
the PeekCompleted event, I get the message and process it further. The
message is being sent through some layers in two appdomains (remote
objects).

I want to set the Culture and UICulture so that error messages are
reported in the desired language and format. Ideally, I want to set
the Culture/UICulture once for an entire appdomain. However, I'm only
able to find the Thread.CurrentThread.CurrentCulture/CurrentUICulture
settings. When the PeekCompleted event fires, it fires it in a
different thread, so I have to set the currentculture/currentuiculture
again.

Is there a way to set the culture for the complete application?
Something like the <system.web><globalization> directive in the
web.config.

Thanks,
Jeffry van de Vuurst
 
Back
Top