CenterServiceConnectionService.cs 758 B

1234567891011121314151617181920212223
  1. using IES.ExamServer.Models;
  2. namespace IES.ExamServer.DI
  3. {
  4. public class CenterServiceConnectionService
  5. {
  6. private bool _centerIsConnected;
  7. private bool _notifyIsConnected;
  8. public string? centerUrl { get; set; }
  9. public string? notifyUrl { get; set; }
  10. public ServerDevice? serverDevice { get; set; }
  11. public bool notifyIsConnected
  12. {
  13. get { return string.IsNullOrWhiteSpace(notifyUrl) ? false : _notifyIsConnected; }
  14. set { _notifyIsConnected = value; }
  15. }
  16. public bool centerIsConnected
  17. {
  18. get { return string.IsNullOrWhiteSpace(centerUrl) ? false : _centerIsConnected; }
  19. set { _centerIsConnected = value; }
  20. }
  21. }
  22. }