DefaultBootstrap.Net45.cs 480 B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. namespace SuperSocket.SocketEngine
  7. {
  8. public partial class DefaultBootstrap
  9. {
  10. partial void SetDefaultCulture(SocketBase.Config.IRootConfig rootConfig)
  11. {
  12. if (!string.IsNullOrEmpty(rootConfig.DefaultCulture))
  13. CultureInfo.DefaultThreadCurrentCulture = new CultureInfo(rootConfig.DefaultCulture);
  14. }
  15. }
  16. }