Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. public bool CancellationPending { get; private set; }
  2. public bool IsBusy { get; private set; }
  3. public bool WorkerReportsProgress { get; set; }
  4. public bool WorkerSupportsCancellation { get; set; }
  5.  
  6. public bool CancellationPending { get; private set; }
  7. public bool IsBusy { get; private set; }
  8. public bool WorkerReportsProgress { get; set; }
  9. public bool WorkerSupportsCancellation { get; set; }
  10.  
  11. //========== Public properties ==================================================//
  12.  
  13. public bool CancellationPending { get { return _cancellationPending; } private set { _cancellationPending = value; } }
  14.  
  15. public bool IsBusy { get { return _isBusy; } private set { _isBusy = value; } }
  16.  
  17. public bool WorkerReportsProgress { get { return _workerReportsProgress; } set { _workerReportsProgress = value; } }
  18.  
  19. public bool WorkerSupportsCancellation { get { return _workerSupportsCancellation; } set { _workerSupportsCancellation = value; } }
  20.  
  21. //========== Private fields ==================================================//
  22.  
  23. private volatile bool _cancellationPending;
  24. private volatile bool _isBusy;
  25. private volatile bool _workerReportsProgress;
  26. private volatile bool _workerSupportsCancellation;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement