 
      
    | You are here | wrapt.dev | ||
| | | | | www.fearofoblivion.com | |
| | | | | A blog containing the thoughts and ideas of me | |
| | | | | khalidabuhakmeh.com | |
| | | | | How to speed up database integration tests using Respawn and xUnit class fixtures | |
| | | | | aaronluna.dev | |
| | | | | The Task-based Asynchronous Pattern (TAP) is the recommended way to write asynchronous code for .NET applications. As I explained in my last post, TAP is intended to replace the Asynchronous Programming Model (APM) and the Event-based Asynchronous Pattern (EAP), however many classes in the .NET framework still use these older patterns. Fortunately, these can be turned into TAP-style "awaitable" methods with relative ease. By doing so, you reap the benefits that come from working with Task (and Task) objects. In this post, I will convert a set of APM-style methods from the System.Net.Sockets namespace to TAP methods and provide an end-to-end example of how to use them in a generic TCP socket server. | |
| | | | | nodogmablog.bryanhogan.net | |
| | | This post shows how to use Polly with .NET 6 if you are taking advantage of top-level statements, minimal API endpoints, and the HttpClientFactory. | ||