IParameter.cs 848 B

12345678910111213141516171819202122232425262728293031323334
  1. namespace WingServerCommon.Config.Parameters
  2. {
  3. /// <summary>
  4. /// Parameters interface, different type can implement it
  5. /// </summary>
  6. public interface IParameter
  7. {
  8. /// <summary>
  9. /// parameter name
  10. /// </summary>
  11. string Name { get; set; }
  12. /// <summary>
  13. /// parameter section
  14. /// </summary>
  15. string Section { get; set; }
  16. /// <summary>
  17. /// parameter value changed state
  18. /// </summary>
  19. bool IsChanged { get; }
  20. /// <summary>
  21. /// change initial value
  22. /// </summary>
  23. void ChangeInitialValue();
  24. /// <summary>
  25. /// Load user setting value
  26. /// </summary>
  27. /// <param name="value">User setting value.</param>
  28. void ChangeParameterValue(object value);
  29. }
  30. }