IRootConfig.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Configuration;
  6. using System.Collections.Specialized;
  7. namespace SuperSocket.SocketBase.Config
  8. {
  9. /// <summary>
  10. /// The root configuration interface
  11. /// </summary>
  12. public partial interface IRootConfig
  13. {
  14. /// <summary>
  15. /// Gets the max working threads.
  16. /// </summary>
  17. int MaxWorkingThreads { get; }
  18. /// <summary>
  19. /// Gets the min working threads.
  20. /// </summary>
  21. int MinWorkingThreads { get; }
  22. /// <summary>
  23. /// Gets the max completion port threads.
  24. /// </summary>
  25. int MaxCompletionPortThreads { get; }
  26. /// <summary>
  27. /// Gets the min completion port threads.
  28. /// </summary>
  29. int MinCompletionPortThreads { get; }
  30. /// <summary>
  31. /// Gets a value indicating whether [disable performance data collector].
  32. /// </summary>
  33. /// <value>
  34. /// <c>true</c> if [disable performance data collector]; otherwise, <c>false</c>.
  35. /// </value>
  36. bool DisablePerformanceDataCollector { get; }
  37. /// <summary>
  38. /// Gets the performance data collect interval, in seconds.
  39. /// </summary>
  40. int PerformanceDataCollectInterval { get; }
  41. /// <summary>
  42. /// Gets the log factory name.
  43. /// </summary>
  44. /// <value>
  45. /// The log factory.
  46. /// </value>
  47. string LogFactory { get; }
  48. /// <summary>
  49. /// Gets the isolation mode.
  50. /// </summary>
  51. IsolationMode Isolation { get; }
  52. /// <summary>
  53. /// Gets the option elements.
  54. /// </summary>
  55. NameValueCollection OptionElements { get; }
  56. /// <summary>
  57. /// Gets the child config.
  58. /// </summary>
  59. /// <typeparam name="TConfig">The type of the config.</typeparam>
  60. /// <param name="childConfigName">Name of the child config.</param>
  61. /// <returns></returns>
  62. TConfig GetChildConfig<TConfig>(string childConfigName)
  63. where TConfig : ConfigurationElement, new();
  64. }
  65. }