Beispiel #1
0
        public void SendQuestion(TriviaQuestion entry)
        {
            _questionAnswered = new TaskCompletionSource <object>();

            var question = new global::TriviaGame.TriviaQuestion()
            {
                Question   = entry.Question,
                QuestionID = entry.QuestionID.ToString()
            };

            question.Answers.Add(entry.Answers);

            _responseStream.WriteAsync(question);
        }