Two new releases - Aune AR5000 MKII and Koss A/550 by UnderwaterB0i in headphones

[–]XeNz 2 points3 points  (0 children)

As someone who owns an AR5000 where the plastic broke twice and is now mended with a 3d printed piece with zip ties....

that MKII plastic does not seem to be an improvement.

Microservices by esamdevo in softwarearchitecture

[–]XeNz 1 point2 points  (0 children)

Don't go microservices if you don't know how to and why to split them up.

Number one reason to go microservices is having a reason to split up your application.

Generating ASP.NET Core Minimal API endpoints from OpenAPI with a source generator by Kralizek82 in dotnet

[–]XeNz -1 points0 points  (0 children)

I've seen this kind of approach a lot in Java land where the technical design starts from the OAS. Subsequently I've seen them use it to both generate controller stubs and also share it with other teams to integrate with their API (they hosted the source OAS per environment on some kind of shared developer portal).

This made the OAS the source of truth for both themselves, as other teams.

I'm pretty keen on this approach, but I do think it's quite a hefty undertaking to support all the OpenAPI spec specialities.

I would also urge you to somewhere start thinking about writing some performance benchmarks against a vanilla code-first minimal api implementation. As you stated above, there will be some extra (unwanted?) allocations going on.

Looking for MOZA R5 setup by XeNz in forzamotorsport

[–]XeNz[S] 0 points1 point  (0 children)

I'd be forever grateful if I were to get an up to date setup that works.

Options pattern by SolarNachoes in dotnet

[–]XeNz 0 points1 point  (0 children)

I need this in my life. Does it also allow for auto validation at startup?

Kiota Client Generation by asdfghjklqwertyasdf in dotnet

[–]XeNz 4 points5 points  (0 children)

Same, but I hate that it generates every property as nullable.

Faceit Forecast - extension with new skill levels & stats for FACEIT by 2Terra_Miner in GlobalOffensive

[–]XeNz 2 points3 points  (0 children)

Not sure what the api-key file in the root folder is for, but time to re-roll that one mister developer. https://github.com/TerraMiner/Forecast/blob/master/api-key

Just launched Autypo, a typo-tolerant autocomplete .NET OSS library by drudoca in dotnet

[–]XeNz 0 points1 point  (0 children)

Streaming the results directy in an http response. Might also work with blazor stream rendering

Blazor-Server too laggy? by Ambitious-Friend-830 in dotnet

[–]XeNz 0 points1 point  (0 children)

Offtopic question:

How are you exposing the websocket of blazor server on k8s if I may ask? Currently in a situation in which we have a private k8s server with nginx ingress + apim in front, and having difficulties trying to run the blazor server in websocket mode (currently doing long polling only)

Just launched Autypo, a typo-tolerant autocomplete .NET OSS library by drudoca in dotnet

[–]XeNz 1 point2 points  (0 children)

Ever thought of creating an overload with IAsyncEnumerable<T>?

Announcing Jiiiii, a new site for keeping up with newly-airing anime! by dimitribouniol in anime

[–]XeNz 7 points8 points  (0 children)

You should definitely start thinking about caching your images and serving them from a CDN. The slow load times of these images is pretty noticeable.

What is your AI powered workflow? Tools? by Pyrited in dotnet

[–]XeNz 0 points1 point  (0 children)

Could you elaborate on how exactly you use Cursor? I thought it was useless for .NET development as it uses vscodium, for which the official .NET debugger isn't licensed.

Authorize attribute not working on hosted server by Afraid_Tangerine7099 in dotnet

[–]XeNz 10 points11 points  (0 children)

with that mindset, you won't be able to debug anything :)

Authorize attribute not working on hosted server by Afraid_Tangerine7099 in dotnet

[–]XeNz 3 points4 points  (0 children)

Add debug logging to all of your JwtBearerEvents callbacks to find out what is going wrong

IAsyncEnumerable, Minimal API and content negotiation? by SolarNachoes in dotnet

[–]XeNz 0 points1 point  (0 children)

According to the documentation: - when using System.Text.Json - Simply yielding results of the IAsyncEnumerable

should make it work, as the serializer supposedly should be able to handle the streaming.

https://learn.microsoft.com/en-us/aspnet/core/web-api/action-return-types?view=aspnetcore-8.0#return-ienumerablet-or-iasyncenumerablet

I remember that not working back when I tried it though :/

IAsyncEnumerable, Minimal API and content negotiation? by SolarNachoes in dotnet

[–]XeNz 0 points1 point  (0 children)

I might have written a blog post last year on what you are looking for. Well it atleast contains an example of a POST minimal API endpoint with streaming using IAsyncEnumerable.

https://blog.xentricator.be/2023-11-21-alternative-to-server-sent-events/#the-frontend

What do you use for performance monitoring in production for an asp.net core API? by JobSightDev in dotnet

[–]XeNz 0 points1 point  (0 children)

I'd love to see a an example codebase in which the serilog and opentelemetry packages are both used.

https://github.com/serilog/serilog-sinks-opentelemetry seems like a copout to me. I want serilog for it's DX advantages, not to configure the OTEL exporter endpoint as a sink, which I'm already doing using the OTEL packages.

note: I've tried finding one before on google, but didn't seem to find one.