Skip to content

Instantly share code, notes, and snippets.

View PragmaticPraxis's full-sized avatar

PragmaticPraxis

View GitHub Profile
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) {
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 () {