Skip to content

Conversation

@sebastiano1972
Copy link
Contributor

Hi Tomasz,

I realised that if the client properties collection is thread safe it can then be more useful in more usage scenarios. This PR removes the Properties dictionary and replaces it with a set of 3 methods (SetProperty, GetProperty and RemoveProperty) backed up by a ConcurrentDictionary.
The ConcurrentDictionary can now store objects rather then just strings, again to increase its usefulness in more usage scenarios. Therefore, the before mentioned methods are implemented as generics to enforce type checking.

Unfortunately this is a breaking change.

Best regards,

Sebastiano

@tpeczek tpeczek self-requested a review April 6, 2020 21:36
@tpeczek tpeczek self-assigned this Apr 6, 2020
@tpeczek tpeczek added this to the v5.0.0 milestone Apr 6, 2020
@tpeczek
Copy link
Owner

tpeczek commented Apr 6, 2020

Thank you, I will review this one and get back to you.

A you have pointed out, this is a breaking change. I have a breaking release planned, but it will take some time before i push it (when you are making breaking changes you really want for them to be the right one).

@tpeczek tpeczek merged commit dea92ee into tpeczek:master Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants