public void DoWork() { if (remoteService.HasData()) { outputQueue.Enqueue(remoteService.GetData()); } }