Пример #1
0
        public override void Run()
        {
            Trace.TraceInformation("WorkerRole1 is running");

            Trace.WriteLine("Inside WorkerRole.RunAsync()");
            // See app.config & https://docs.postman-echo.com/ for details
            ApiResource resource = new ApiResource(new Config());

            Trace.WriteLine("Executing HTTP GET");

            var result = resource.GetAsync <PostManResponse>("https://postman-echo.com/basic-auth").Result;

            Trace.WriteLine($"HTTP GET responded with authenticated={result.authenticated}");

            // VP - I'm just going to let this run once and then exit.
        }