Yair Halberstadt

Results 163 comments of Yair Halberstadt

My current advice would be to make GlobalStateHttpClient disposable and have it dispose of the httpclient. Alternatively you could make the Factory take as a parameter a `Func` as a...

I do not currently have time to maintain this project, but I am happy to review pull requests.

@alrz An alternative would be to mark an extension method as always in scope explicitly using an attribute or similar. If the compiler is able to do this efficiently that...

What do you mean by global imports?

I mean opt in by the author of the extension method, not the consumer

In the three use cases I suggested here, it would be better for the library author to control this than the consumer. I want people to just install my extension...

@egil Default interface methods won't work here since they require casting the container to the interface. Extension methods solve that issue.

@ViIvanov If you need any help, feel free to ask on the Roslyn gitter. You can also make a draft PR early, and ask for guidance. Feel free to tag...

> @stephentoub I've been thinking about this a lot over the weekend, and if this _did_ become a feature, it feels like a level of abstraction is warranted; there's a...

Related - general enhancements to AsyncMethodBuilder machinery: https://github.com/dotnet/csharplang/discussions/3403