예제 #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));
 }