-
Notifications
You must be signed in to change notification settings - Fork 220
Add TagHelperDescriptorResolver implementation. #148
Add TagHelperDescriptorResolver implementation. #148
Conversation
c4efe4a to
edc7da8
Compare
4cd59eb to
68fd42a
Compare
edc7da8 to
c3f3877
Compare
68fd42a to
8ba1682
Compare
c3f3877 to
7c7b97d
Compare
8ba1682 to
2f775d4
Compare
208aaa7 to
c729b8a
Compare
2f775d4 to
369a300
Compare
c729b8a to
1d2d21e
Compare
369a300 to
e9df146
Compare
1f61154 to
437a2a5
Compare
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.
please remove this validation and file an issue for separate triage and tracking
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.
Why? I feel like this definitely belongs in this PR. Part of the DescriptorResolver is verifying that TagHelpers do not conflict.
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.
- you're enlarging this PR to include a validation we may decide isn't needed in v1
- your placement decisions are leading to an artificial feeling of size that in turn led to an artificial split between two resolution phases
- even if we decide validation makes sense, it might make more sense as a part that's split out
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.
|
⌚ |
|
I didn't mean for this to be a full |
e9df146 to
aff29a9
Compare
437a2a5 to
6ab43f5
Compare
|
Changed pretty much everything about this PR so I didn't bother with an "addressed code review comment" commit. Re-did the description of the PR and updated. |
aff29a9 to
033cd96
Compare
6ab43f5 to
074916a
Compare
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.
throw an ArgumentException instead, passing nameof(lookupText) to its constructor
|
⌚ (very close) |
8f2e2a2 to
dd34a80
Compare
|
Addressed code review comments. |
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.
nit: one last "that is"
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.
And "A" -> "An"
|
|
- This involved also adding a TagHelperTypeResolver and TagHelperDescriptorFactory. - The TagHelperTypeResolver is responsible for determining the format of lookup text's used throughout the tag helper system. By default it handles the following formats: "assemblyName" "specificType, assemblyName" - It also restricts what types are considered TagHelpers. In this implementation we only accept public, non-nested, non-abstract, non-generic TagHelpers. - The TagHelperDescriptorFactory is responsible for converting a Type to a TagHelperDescriptor. - Added tests to validate TagHelperDescriptorResolver, TagHelperTypeResolver and TagHelperDescriptorFactory. #99 #158
84f0011 to
da3051a
Compare
dd34a80 to
268dde0
Compare
"assemblyName"
"specificType, assemblyName"
Tag Helpers: Create TagHelperDescriptor resolver system #99
Tag Helpers: Create string => Type[] resolver to indicate what Types are TagHelpers based on a lookup string.. #158