This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class QueueComponent { | |
# Properties | |
[String]$ID | |
hidden [System.Collections.Generic.List[object]]$Queue | |
# Constructor | |
QueueComponent () { | |
$this.Queue = [System.Collections.Generic.List[object]]::New() | |
} | |
QueueComponent ([String]$id) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ProcessQueue { | |
# Properties | |
hidden static [ProcessQueue] $singleton = $null | |
hidden [System.Collections.Generic.List[object]]$Queue = [System.Collections.Generic.List[object]]::New() | |
# hide instance constructor, no one should call this directly | |
hidden ProcessQueue () {} | |
# Use a static constructor to initialize singleton | |
static ProcessQueue () { |