-
Notifications
You must be signed in to change notification settings - Fork 67
Conversation
At first glance it looks like the baseline cost (if noone hooks up to listen) is a singleton IOptionsChangeTokenSource. Are there other hidden costs?
I agree the code is a bit more involved this way, but I think it is fine, and I cannot see us getting away without it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but you will probably want to get another round of votes for naming (in case sleeping on it or the 🍺 helped).
Yeah I guess the overhead isn't too bad if no one asks for an IOptionsMonitor since the change token hookup in the ctor won't happen |
@Eilon @DamianEdwards @davidfowl last call for other name suggestions for the initial checkin...? ' |
Keep IOptionsSnapshot - it conveys the nature of the object ;) |
I fully expected the reason for the existence of |
Fixes #145 (comment)
Initial shape with basic tests (want to add a few more)
Few points to consider: