ServerInfo.cs 879 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Collections.Generic;
  2. namespace Vinno.vCloud.Common.FIS
  3. {
  4. public class ServerInfo
  5. {
  6. /// <summary>
  7. /// Gets or sets the host.
  8. /// </summary>
  9. public string Host { get; set; }
  10. /// <summary>
  11. /// Gets or setst he server port.
  12. /// </summary>
  13. public int Port { get; set; }
  14. public override string ToString()
  15. {
  16. return $"{Host}:{Port}";
  17. }
  18. }
  19. /// <summary>
  20. /// The defalult server settings.
  21. /// </summary>
  22. public class DefaultServerSettings
  23. {
  24. /// <summary>
  25. /// Gets or sets the default servers.
  26. /// </summary>
  27. public List<ServerInfo> Servers { get; set; }
  28. /// <summary>
  29. /// Gets or setst the master server.
  30. /// </summary>
  31. public ServerInfo MasterServer { get; set; }
  32. }
  33. }