/// <summary> /// The default Constructor. /// </summary> public InitializeProcess(InitializeDelegate initializeDelegate, string processDescription, TimeSpan timeToWaitBeforeRunningProcess, CheckCompleteDelegate checkCompleteCallback) { _initializeDelegate = initializeDelegate; _processDescription = processDescription; _timeToWaitBeforeRunningProcess = timeToWaitBeforeRunningProcess; _checkCompleteCallback = checkCompleteCallback; }
public void triggerCheck(CheckCompleteDelegate checkCompleteDelegate) { if (_checkTriggered) { throw new System.Exception("You have already triggered a check event"); } _checkTriggered = true; if (checkCompleteDelegate != null) { addCheckCompleteListener(checkCompleteDelegate, true); } string checkRequestMessage = SimCapiJsonMaker.create_CHECK_REQUEST(_handshake); _pendingMessagesForValueChange.Add(checkRequestMessage); notifyValueChange(); }
public CheckCompleteKey(CheckCompleteDelegate checkCompleteDelegate, bool once) { this.checkCompleteDelegate = checkCompleteDelegate; this.once = once; }
public void addCheckCompleteListener(CheckCompleteDelegate checkCompleteDelegate, bool once) { _checkCompleteListeners.Add(new CheckCompleteKey(checkCompleteDelegate, once)); }