-
Notifications
You must be signed in to change notification settings - Fork 10.3k
feat: Add StringSyntaxAttribute for guid and timespan args #48662
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
Conversation
Thanks for your PR, @abc516. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
I don't think the GuidFormat usages are correct. There is no restriction on ConnectionID being a GUID string. See https://source.dot.net/#Microsoft.AspNetCore.Http.Connections/Internal/HttpConnectionManager.cs,c33ed873441a4544 for an example of an ID we create that is explicitly not a GUID. |
@BrennanConroy I can remove them from the Http/Kestrel Server references. Do you have any recommendations to where I can put the GuidFormat usages? |
There might not be any. |
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
I understand why this could be useful for the developers in this code base, but it doesn't seem like there's a big value in having these throughout internal and private methods in the code base. |
Based on the notes above, and this has sat for a while, I'm going to close. Thanks @abc516 for the contribution. |
Hi @danmoseley. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
#44535 (GuidFormat and TimeSpanFormat)
Description
Adds the StringSyntaxAttribute for guid and timespan string function parameters, to specify syntax adherence.
Specifically, for the guid params, it adds it to all references of the SignalR Hub ConnectionId param and Kestrel Web Server ConnectionID .