About 17 results
Open links in new tab
  1. Simple server using async and HttpListener - Code Review Stack …

    Jun 12, 2018 · Simple server using async and HttpListener Ask Question Asked 7 years, 6 months ago Modified 6 years, 7 months ago

  2. Gracefully shutting down a HttpListener - Code Review Stack Exchange

    Gracefully shutting down a HttpListener Ask Question Asked 8 years, 10 months ago Modified 1 year, 9 months ago

  3. HTTPS with HttpListener - social.msdn.microsoft.com

    Mar 11, 2007 · I am running VS2005 under XP SP2. I have added various certificates. I've run HTTPCFG as seen described (poorly) elsewhere. No problem doing HTTP but HTTPS is a no go. I …

  4. Non-blocking, non-threaded HTTP client implementation

    Sep 13, 2015 · This is a C# WinForms program targeting .Net 4.5. I am using it for a movie organizer application that will contact sites like OMDB, MyApiFilms, etc. for data about the movies. At the main …

  5. c# - "Two way" HTTP Client - Code Review Stack Exchange

    Sep 16, 2016 · AFAIK await the context from HttpListener and directly using it inside an asynchronous call of Task.Run is redundant (I'd say useless.) Just use _listener.GetContext() and drop await and …

  6. Awaiting multiple HTTP Requests - Code Review Stack Exchange

    Can the SendRequests method ever return before the requests finish / get resolved? Of course. Otherwise it would return List<HttpResponseMessage> rather than …

  7. Posts data to endpoint, trying not to use .Result on async methods

    Jun 30, 2021 · I have a Send method that is working but want to refactor a portion where it is using PostAsync().Result and ReadAsStringAsync().Result. I've never written async methods before and …

  8. Return XML file from Web API - Code Review Stack Exchange

    Jun 21, 2017 · [HttpGet] public async Task<IActionResult> Get() { XmlDocument xmlDoc = new XmlDocument(); await Task.Run(() => xmldoc.Load(_appEnvironment.WebRootPath + …

  9. MS CA2202: Object can be disposed more then once

    When running Code Analysis on my project I get the following warning: CA2202 : Microsoft.Usage : Object 'fs' can be disposed more than once in method I don't see the problem, and the code compile...

  10. Simple HttpClient usage for integration tests in .NET Core

    Sep 6, 2019 · I have this simple setup for a .NET Core project which is just a very basic HttpClient usage to do some simple integration tests to a RESTful API. For now the test project remains separated …