Skip to content

Usage of the HttpMessageHandlerBuilder.Name property in production code #110085

Answered by CarnaViire
iliar-turdushev asked this question in Q&A
Discussion options

You must be logged in to vote

All behavioral breaking changes will be always properly documented. HttpMessageHandlerBuilder.Name is part of the public API surface, which means there could be users who rely on it. So if any breaking change, including obsoletion, happens in that area, there will be always a doc, and a workaround provided.

So from that perspective, you can use it in production as well. At the moment, I don't see anything that should prevent you from using HttpMessageHandlerBuilder.Name property.

What's more, at the moment, this property is (unfortunately) the only way to access the name of a specific client within a "global" (="for all clients") configuration -- be it ConfigureHttpClientDefaults or Confi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@CarnaViire
Comment options

@iliar-turdushev
Comment options

Answer selected by iliar-turdushev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants