WebServerProperties.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using InABox.Core;
  2. namespace PRSServer
  3. {
  4. public class WebServerProperties : ServerProperties
  5. {
  6. public WebServerProperties()
  7. {
  8. ListenPort = 7998;
  9. MaxFileSize = 15;
  10. LoginExpiry = 1;
  11. }
  12. [ComboLookupEditor(typeof(DatabaseServerLookupGenerator))]
  13. [EditorSequence(1)]
  14. public string Server { get; set; }
  15. [IntegerEditor]
  16. [EditorSequence(2)]
  17. public int ListenPort { get; set; }
  18. [IntegerEditor]
  19. [EditorSequence(3)]
  20. [Caption("Maximum File Transfer Size (MB)")]
  21. public int MaxFileSize { get; set; }
  22. [IntegerEditor]
  23. [EditorSequence(4)]
  24. [Caption("Login expiry time (Hours)")]
  25. public int LoginExpiry { get; set; }
  26. [EditorSequence(9)]
  27. [FileNameEditor("Certificate Files (*.pfx)|*.pfx")]
  28. public string CertificateFile { get; set; }
  29. public override ServerType Type()
  30. {
  31. return ServerType.Web;
  32. }
  33. }
  34. }