示例#1
0
 /// <summary>
 /// The default Constructor.
 /// </summary>
 public InitializeProcess(InitializeDelegate initializeDelegate, string processDescription,
                          TimeSpan timeToWaitBeforeRunningProcess, CheckCompleteDelegate checkCompleteCallback)
 {
     _initializeDelegate             = initializeDelegate;
     _processDescription             = processDescription;
     _timeToWaitBeforeRunningProcess = timeToWaitBeforeRunningProcess;
     _checkCompleteCallback          = checkCompleteCallback;
 }
示例#2
0
        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();
        }
示例#3
0
 public CheckCompleteKey(CheckCompleteDelegate checkCompleteDelegate, bool once)
 {
     this.checkCompleteDelegate = checkCompleteDelegate;
     this.once = once;
 }
示例#4
0
 public void addCheckCompleteListener(CheckCompleteDelegate checkCompleteDelegate, bool once)
 {
     _checkCompleteListeners.Add(new CheckCompleteKey(checkCompleteDelegate, once));
 }