-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Event Hub] Small improvements & refactorings #29952
Conversation
Thank you for your contribution @danielmarbach! We will review the pull request and get back to you soon. |
@jsquire I noticed |
sdk/eventhub/Azure.Messaging.EventHubs/src/Core/TransportProducerPool.cs
Show resolved
Hide resolved
sdk/eventhub/Azure.Messaging.EventHubs/src/Core/TransportProducerPool.cs
Show resolved
Hide resolved
sdk/eventhub/Azure.Messaging.EventHubs/src/Core/TransportProducerPool.cs
Show resolved
Hide resolved
sdk/eventhub/Azure.Messaging.EventHubs/src/Core/TransportProducerPool.cs
Show resolved
Hide resolved
Please also see #29952 (comment) |
Ah I think these comments
explains things |
I have another design related question. I wonder if it would make sense to add the necessary state and references to |
I generally have a strong preference to keep object graphs flowing in a single direction, but this is an internal construct of very tightly coupled types, so I'm not totally opposed in this specific instance. I do know that we originally ran into a lot of issues with concurrent use and non-deterministic clean-up that we had to guard against. (the two comments that you highlighted call some out) Do you think we'd be opening up additional corner cases to guard against? |
I guess this is good to go then |
Much appreciated! |
* Provide dictionary count during map creation * Remove unnecessary string during ActiveInstances management * Remove LINQ * Remove Task.Completed * Remove unnecessary paranthesis
Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.