Ejemplo n.º 1
0
        public ChoAppSyncMethodExecuter(ChoCallback waitCallback, object state)
        {
            if (_isExecuting)
            {
                _isLoading.WaitOne();
            }
            else
            {
                _isExecuting = true;
                _isLoading.Reset();

                if (waitCallback != null)
                {
                    _retValue = waitCallback(state);
                }
            }
        }
Ejemplo n.º 2
0
 public ChoAppSyncMethodExecuter(ChoCallback waitCallback)
     : this(waitCallback, null)
 {
 }