-
Couldn't load subscription status.
- Fork 47
Implements Type in SignalRValueProvider #116
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
base: dev
Are you sure you want to change the base?
Conversation
Also introduces a specific NullValueProvider
|
Thanks for contributing! The PR look good! I found |
|
Do you mean as nested classes or to move all logic into |
| public Type Type { get; } | ||
|
|
||
| public Task<object> GetValueAsync() | ||
| => Task.FromResult(value); |
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.
@wanlwanl is this a "hot" path? Would it be better to create a field holding a Task.FromResult(value) and set in in the constructor?
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.
Did the change I meant. If no good, I can revert.
|
@wanlwanl Merged the code into the |
|
Hi @danielwertheim , I create a PR based on this PR, please take a look. |
|
@wanlwanl I've changed so that the optimized null value provider etc. is enclosed in the |
|
@danielwertheim Thanks for update! SignalR extension used to add binding via As for |
Implements the
Typeproperty in theSignalRValueProvideras it currently was left unassigned, or was this by design? Also introduces a specificSignalRNullValueProviderand unifies the creation of it using a simple factory method.Didn't add the type checks that e.g. the
ObjectValueProviderdoes as the factory method ensures the type is correct.