Setting culture for complete appdomain or application

  • Thread starter Jeffry van de Vuurst
  • 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top