Esempio n. 1
0
 public ApiClient()
 {
     QuestionsService = new QuestionsClient("https://localhost:44353/", httpClient);
     QuizService      = new QuizClient("https://localhost:44353/", httpClient);
     StudentService   = new StudentsClient("https://localhost:44353/", httpClient);
     GradesService    = new GradesClient("https://localhost:44353/", httpClient);
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var client = new StudentsClient();

            var observableStudents = client.GetAllAsync().Result;

            foreach (var student in observableStudents)
            {
                Console.WriteLine(student.ToJson());
            }
        }
Esempio n. 3
0
 public StudentController(StudentsClient client) => this.client = client;