Ejemplo n.º 1
0
        public void Receive(TaskMessage message)
        {
            if (message != null && message.Task != null)
            {
                _dispatcher.Update(message.Task);

                if (message.Result != null)
                {
                    _result = message.Result;
                    _results.Add(_result);
                    if (_mode == TaskMode.SearchOne)
                    {
                        _state = TaskManagerState.Completed;
                    }
                }
            }
        }