Beispiel #1
0
        static void Main()
        {
            Task.Run(async() =>
            {
                var baseAddress = IsDevelopment ? "http://*****:*****@gmail.com"
                });


                if (!jsonResponse.IsSuccessStatusCode)
                {
                    Console.WriteLine(jsonResponse.StatusCode);
                }
                else
                {
                    var content = await jsonResponse.Content.ReadAsStringAsync();

                    var jsonObject = await client.ReadAsJsonAsync <ResultModel>(jsonResponse.Content);
                    if (jsonObject.IsSuccess)
                    {
                        Console.WriteLine(content);
                    }
                }

                Console.ReadKey();
            }).Wait();

            Console.ReadKey();
        }