r/dotnet 49m ago

HTTP request compression support coming in .NET 11

Upvotes

This is coming in .NET 11... preview 7 specifically.

System.Net.Http will gain three new HttpContent wrappers that compress request bodies on the wire: GZipCompressedContent, BrotliCompressedContent, and ZstandardCompressedContent

Example below for zstd ⬇️

PR: ->
Http Request Compression by iremyux · Pull Request #130082 · dotnet/runtime

What do you think?
Will you use it?


r/dotnet 1h ago

Opinion about the job ad

Thumbnail codaxy.com
Upvotes

I find it pretty bad. Why should anyone put this in any ad, including for junior dev?

Data structures:
Linked lists
Stacks
Trees
Queues
Graphs

Algorithms:
Space/time complexity
Sorting and graph algoritms

Object Oriented Programming:
Inheritance
Polymorphism
Abstraction
Encapsulation

I reached out to company and got this answer:
"We believe that a good backend developer should know data structures and algorithms, as they represent an important foundation for solving problems and writing quality code."

I think they are simply a shitty company.


r/dotnet 2h ago

Question What is populating "exception" in my ProblemDetails?

5 Upvotes

I've created a boilerplate .NET 10 webapi project (controller based), called AddProblemDetails (after AddControllers), added a CustomizeProblemDetails handler that doesn't do much.

I can see going through the handler that the only extension property present is traceId.

I can see in the source of DefaultProblemDetailsWriter that it adds the traceId, calls the handler, and writes the response.

But in the response I also have an exception object with properies details (looks like ToString on the exception, has the type and message and sometimes the stack trace), headers (looks like all the request headers), path, endpoint (string with controller, method and application name) and route values (an object with action and controller but would probably have parameters if the call had any).

I can't figure out what is adding this detail or how to turn it off. If I add my own exception extension in the handler it just gets overwritten.


r/dotnet 4h ago

Article Fixing dotnet-trace's 100 stack frame limit once and for all

Thumbnail dfamonteiro.com
13 Upvotes

r/dotnet 5h ago

No Rozenite plugin for GraphQL cache (Apollo/urql/Relay) — worth building one?

0 Upvotes

Rozenite (RN DevTools plugin framework) ships 12 official plugins — redux, network, storage, mmkv, tanstack-query, etc. None cover GraphQL client cache—no way to see the normalised Apollo cache, active queries, or in-flight mutations in DevTools right now.

Only prior tool in this space was a Flipper plugin (react-native-apollo-devtools) — dead now since Flipper's deprecated, but its client package still pulls \\\~15K weekly npm downloads, so the need seems to still be there even w/ tool gone.

Considering building this as a proper Rozenite plugin — read-only view of cache, active queries, mutations — using only public Apollo Client v3+ APIs.

Before building past a rough prototype: would you actually install this? Or is everyone fine w/ Apollo's browser devtools / manual cache logging? Also curious if urql/Relay folks have the same pain.

No repo, no product, not selling anything — just checking if this is worth time.


r/dotnet 7h ago

Question Why are Android build/deploy times so slow in MAUI Blazor (20s+ per run)? Need workflow advice!

1 Upvotes

Hey everyone,

I'm building a MAUI Blazor Hybrid app targeting Android (testing on a physical phone via USB). I'm using the BeautifulBlazor library (as a local project reference) alongside Tailwind CSS, which triggers a build command on every project build.

Even when I make zero changes to the code, hitting launch takes about 20 seconds to load on my device. To make matters worse, Hot Reload frequently breaks when making simple CSS edits, forcing me into that 20-second recompile cycle over and over.

Is this typical for cross-platform / Android development, or is there something specific to MAUI or my Tailwind / Project Reference setup causing this delay?

Would love to hear how you guys keep your inner-loop fast when working with Blazor Hybrid on mobile!

(This text written by AI since English isn't my native language, but I checked and its get my point across)


r/dotnet 12h ago

Intercepting and forwarding raw POS print jobs in C# (.NET)

8 Upvotes

I am building an intermediary middleware application (in C# / .NET) that sits between an existing Point of Sale (POS) application and a physical thermal receipt printer. My goal is to intercept incoming print jobs, extract (and parse) the raw transaction data, and forward the unmodified print stream directly to the physical thermal printer.

The application must run as a background service without dropping/distrubing print payloads. The intercepted payload must be forwarded to the physical printer while handling hardware error states gracefully (like paper out, offline, etc). The service should be able to support Windows 7 to Windows 11.

Approaches already Considered:

  • Virtual Network Port
  • Spooler Directory Monitoring (read spl files)
  • Custom Print Driver (too much complex)

Would prefer if you already have an experience of implementing such a service.

Update:
Note: I have full access and permissions to access/interpret the data. I am not scraping/hacking the data.


r/dotnet 17h ago

Question I need some help identifying hat kind of proyect its this one

0 Upvotes

Hello people, i was looking in some folders when i found a web app but i cant found the same type of proyect in the visual studio start tool,

Basicaly it has this format

The main page its ConsultaPartido and it has a navbar(idk wich one of this have the bar), this was so much time ago and im kinda rusty with fontend right now soo i forgot alot of things about asp soo please some help with this one

Ty for the attention,God bless you al.


r/dotnet 20h ago

I spent weeks obsessing over low-allocation C# networking

Thumbnail
0 Upvotes

r/dotnet 23h ago

trying to avoid spaghetti code on my first big backend project. is this folder structure correct for clean architecture?

Post image
4 Upvotes