SocketServiceConfig.Net45.cs 820 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Configuration;
  4. using System.Linq;
  5. using System.Text;
  6. using SuperSocket.SocketBase.Config;
  7. namespace SuperSocket.SocketEngine.Configuration
  8. {
  9. /// <summary>
  10. /// SocketServiceConfig, the part which is compatible with .Net 4.5 or higher
  11. /// </summary>
  12. public partial class SocketServiceConfig : IConfigurationSource
  13. {
  14. /// <summary>
  15. /// Gets/sets the default culture for all server instances.
  16. /// </summary>
  17. /// <value>
  18. /// The default culture.
  19. /// </value>
  20. [ConfigurationProperty("defaultCulture", IsRequired = false)]
  21. public string DefaultCulture
  22. {
  23. get
  24. {
  25. return (string)this["defaultCulture"];
  26. }
  27. }
  28. }
  29. }