Should ArgumentNullThrowHelper.ThrowIfNull be used instead of ArgumentNullException within AuthenticationState? #51731
-
Hello, I hope the topic I mentioned is open in the right place. In this file, last updated 2 years ago: https://github.com/dotnet/aspnetcore/blob/main/src/Components/Authorization/src/AuthenticationState.cs#L19, there is the following statement: User = user ?? throw new ArgumentNullException(nameof(user)); Can we use this instead? ArgumentNullThrowHelper.ThrowIfNull(user);
User = user; If this would be a good first contribution, I would like to send my very first MR :P I hope I haven't disturbed here unnecessarily and for an irrelevant matter. Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @aligoren you are in the right place and are welcome here. Many people contribute from all over the world and we would be happy for you to as well. Yes we are interested in such changes. @divyeshio began a change but was not able to complete it : #50666 You are welcome to offer a PR. My suggestion is to start small such as a PR for just one assembly. Small PRs are much easier to review and merge quickly. You could start with part of the above PR. |
Beta Was this translation helpful? Give feedback.
-
Hey! Thank you so much for being kind to me. It really made me happy, and I'm sure it can encourage many others who might be hesitant just like me. If I understood correctly, you suggested that I continue with the merge request mentioned above. I should continue with this issue again, shouldn't I? |
Beta Was this translation helpful? Give feedback.
Hi @aligoren you are in the right place and are welcome here. Many people contribute from all over the world and we would be happy for you to as well.
Yes we are interested in such changes. @divyeshio began a change but was not able to complete it : #50666
You are welcome to offer a PR. My suggestion is to start small such as a PR for just one assembly. Small PRs are much easier to review and merge quickly. You could start with part of the above PR.