<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ASP.NET Core on Daniel Genezini</title><link>https://genezini.com/tags/asp.net-core/</link><description>Recent content in ASP.NET Core on Daniel Genezini</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>2022 Daniel Genezini All rights reserved</copyright><lastBuildDate>Wed, 11 Oct 2023 08:20:00 -0300</lastBuildDate><atom:link href="https://genezini.com/tags/asp.net-core/index.xml" rel="self" type="application/rss+xml"/><item><title>Server-side rendered SPAs with ASP.NET and no Javascript</title><link>https://genezini.com/blog/p/server-side-rendered-spas-with-asp.net-and-no-javascript/</link><pubDate>Wed, 11 Oct 2023 08:20:00 -0300</pubDate><guid>https://genezini.com/blog/p/server-side-rendered-spas-with-asp.net-and-no-javascript/</guid><description>&lt;img src="https://genezini.com/blog/p/server-side-rendered-spas-with-asp.net-and-no-javascript/cover.jpg" alt="Featured image of post Server-side rendered SPAs with ASP.NET and no Javascript" /> Single-page applications (SPA) provide better user experience by removing full-page loads, giving smooth transitions between pages and performance improvements depending on the scale of the application, but they come at some costs which may not be worth for some application types. The main cost is the added complexity of a SPA framework like Angular or Vue.
In this post, I'll show how to use ASP.NET and HTMX to build single-page applications without using JavaScript and SPA frameworks.</description></item><item><title>Why my WireMock mocks aren't working?</title><link>https://genezini.com/blog/p/why-my-wiremock-mocks-arent-working/</link><pubDate>Tue, 11 Apr 2023 08:00:00 -0300</pubDate><guid>https://genezini.com/blog/p/why-my-wiremock-mocks-arent-working/</guid><description>&lt;img src="https://genezini.com/blog/p/why-my-wiremock-mocks-arent-working/cover.jpg" alt="Featured image of post Why my WireMock mocks aren't working?" /> WireMock.Net is a great tool to remove external dependencies when writing integration tests, but because it is highly configurable, it can be hard to find why its mocks aren't working.
In this post, I'll explain how to troubleshoot problems in its configuration and show some common problems that happen in my day-to-day work.</description></item><item><title>Time-out requests in ASP.NET Core with cancellation tokens</title><link>https://genezini.com/blog/p/time-out-requests-in-asp.net-core-with-cancellation-tokens/</link><pubDate>Tue, 20 Dec 2022 06:45:00 -0300</pubDate><guid>https://genezini.com/blog/p/time-out-requests-in-asp.net-core-with-cancellation-tokens/</guid><description>&lt;img src="https://genezini.com/blog/p/time-out-requests-in-asp.net-core-with-cancellation-tokens/cover.jpg" alt="Featured image of post Time-out requests in ASP.NET Core with cancellation tokens" /> When ASP.NET Core is running in an AWS Lambda and receiving requests through an AWS API Gateway, the application is not notified of an API Gateway time-out and keeps processing the request, completing it eventually. This will leave metrics and logs of a successful request when the client received a time-out error.
In this post, I'll show how to solve this problem with cancellation tokens and time-outs.</description></item><item><title>Canceling abandoned requests in ASP.NET Core</title><link>https://genezini.com/blog/p/canceling-abandoned-requests-in-asp.net-core/</link><pubDate>Mon, 12 Dec 2022 07:30:00 -0300</pubDate><guid>https://genezini.com/blog/p/canceling-abandoned-requests-in-asp.net-core/</guid><description>&lt;img src="https://genezini.com/blog/p/canceling-abandoned-requests-in-asp.net-core/cover.jpg" alt="Featured image of post Canceling abandoned requests in ASP.NET Core" /> When a client makes an HTTP request, the client can abort the request, leaving the server processing if it's not prepared to handle this scenario; wasting its resources that could be used to process other jobs.
In this post, I'll show how to use Cancellation Tokens to cancel running requests that were aborted by clients.</description></item><item><title>Integration tests without API dependencies with ASP.NET Core and WireMock.Net</title><link>https://genezini.com/blog/p/integration-tests-without-api-dependencies-with-asp.net-core-and-wiremock.net/</link><pubDate>Sun, 25 Sep 2022 08:00:00 -0300</pubDate><guid>https://genezini.com/blog/p/integration-tests-without-api-dependencies-with-asp.net-core-and-wiremock.net/</guid><description>&lt;img src="https://genezini.com/blog/p/integration-tests-without-api-dependencies-with-asp.net-core-and-wiremock.net/cover.jpg" alt="Featured image of post Integration tests without API dependencies with ASP.NET Core and WireMock.Net" /> Although there are many definitions about the scope of an integration test, Martin Fowler defines Narrow integration tests, where the integration with other systems are tested using mocks, and Broad integration tests, where they communicate using real APIs.
In this post, I'll explain how to create mocks for HTTP APIs in narrow integration tests using the WireMock.Net library.</description></item></channel></rss>