/// <summary> /// Enqueue a copy of the specified <see cref="DataFragment"/> /// </summary> /// <param name="data"></param> private void EnqueueDataFragment(DataFragment data) { lock (_sync) { _queue.Enqueue(data.Isolate()); Monitor.PulseAll(_sync); } }
//Set the response protected void SetSuccessfulResult(DataFragment data) { _results.Enqueue(data.Isolate()); _event.Set(); }