Skip to content

Remove k command and use dnx instead#6

Merged
ChengTian merged 1 commit intodevfrom
wei/replace-k-with-dnx
Mar 25, 2015
Merged

Remove k command and use dnx instead#6
ChengTian merged 1 commit intodevfrom
wei/replace-k-with-dnx

Conversation

@ChengTian
Copy link
Copy Markdown

@ChengTian ChengTian merged commit 331ab4a into dev Mar 25, 2015
@JunTaoLuo JunTaoLuo deleted the wei/replace-k-with-dnx branch April 12, 2017 20:36
natemcmaster pushed a commit that referenced this pull request Nov 16, 2018
Reflects the chosen naming of IHttpClientFactory and System.Net.Http
namespace.

Adds the ability to create named clients
- built on top of named options
- this means introducing an options type

Also adds caching of handlers

Resolves: #11 #4 #5 #6

----------------

The options type looks a little wonky but humour me for a second here.

Fundamentally I think it's the right strategy for us to cache *handlers*
not clients. The handler is the thing that actually does connection
management, and conveniently they are opaque and immutable once
constructed.

The HttpClient on the other hand *is* mutable. So if you do something
like dispose it, or modify the big public mutable things, you do so for
the rest of the callers in the system.

I think that caching handlers, but not clients gets us everything we
want. In addition using the HttpClient with either pattern (keep forever
or dispose) will 'just work' without any complicated code or drawbacks
for users.

------

So after establishing that, we need to a way to express both deferred
operations that build a 'handler' pipeline, and deferred operations that
modify an HttpClient - and that's what it looks like on the options
type.

We should add extension methods or maybe another builder if necessary to
smooth it over, but I think we'll get pretty far with what I have until
we start tying in 3rd party libraries.
natemcmaster pushed a commit to natemcmaster/Extensions that referenced this pull request Dec 4, 2018
- Added tool to generate a set of known culture names from the OS/Fx
- CultureInfoCache is now limited to only caching/returning cultures from the known list
- dotnet#6
@ghost ghost locked as resolved and limited conversation to collaborators May 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant