-
Notifications
You must be signed in to change notification settings - Fork 11
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
refactor: Removing all dependency to Guard.NET. #465
Conversation
✅ Deploy Preview for arcus-webapi canceled.
|
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.
Thx a lot for your work on this and your investment in Arcus! Greatly appriciated.
It's a big PR, so I'll write some comments here that are related to tons of files here:
- It's a Micorosft code style to place a blank linke between curly braces and the next (non-curly brace) line. Now, all the if statements are glued togehter, which conflicts the current style in the repo.
- In method overloads, we previously had several 'paranoia' checks which duplicated things. Especially now that we are responsible for the checks, it might be better to opt for a centralized approach and only check the values where there are used. It helps with clarity, too.
- There are a lot of places where argument names are set. I believe in lots of these cases, that is unnecessary.
...cus.WebApi.Logging.AzureFunctions/Extensions/IFunctionsWorkerApplicationBuilderExtensions.cs
Show resolved
Hide resolved
src/Arcus.WebApi.Logging.Core/Correlation/HttpCorrelationClientOptions.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.Logging.Core/Correlation/HttpCorrelationInfoAccessor.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.Logging/Extensions/IServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.Security/Authentication/Certificates/CertificateAuthenticationConfigBuilder.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.Security/Authentication/Certificates/CertificateAuthenticationValidator.cs
Outdated
Show resolved
Hide resolved
@stijnmoreels I believe I've made all the changes you've requested in your comments. Could you be so kind to review the PR again? |
src/Arcus.WebApi.Logging.AzureFunctions/AzureFunctionsRequestTrackingMiddleware.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.Logging.Core/Correlation/CorrelationInfoUpstreamServiceOptions.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.Logging.Core/Correlation/CorrelationInfoUpstreamServiceOptions.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.Security/Authentication/Certificates/ConfigurationValidationLocation.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.Security/Authentication/SharedAccessKey/SharedAccessKeyAuthenticationFilter.cs
Outdated
Show resolved
Hide resolved
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.
Thanks for this! I think we can complete this PR very soon; there's just some (minor) change request on the readability of a particular change.
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.
Thx for this!
@stijnmoreels or @fgheysels I don't have write access to the repository so I'm not allowed to merge my own PR's 😄 |
Let me do it for you, thanks again for your contribution and hope to see you again in the (near) future :) |
It looks like we have some failing unittests. Can you have a look at it @joachimgoris ? |
@fgheysels unit tests are fixed. |
src/Arcus.WebApi.Logging.Core/Correlation/HttpCorrelationClientOptions.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.Logging.Core/Correlation/HttpCorrelationClientOptions.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.OpenApi.Extensions/OAuthAuthorizeOperationFilter.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.OpenApi.Extensions/SharedAccessKeyAuthenticationOperationFilter.cs
Outdated
Show resolved
Hide resolved
src/Arcus.WebApi.OpenApi.Extensions/SharedAccessKeyAuthenticationOperationFilter.cs
Outdated
Show resolved
Hide resolved
…tOptions.cs Co-authored-by: Stijn Moreels <[email protected]>
…tOptions.cs Co-authored-by: Stijn Moreels <[email protected]>
…ter.cs Co-authored-by: Stijn Moreels <[email protected]>
…ionOperationFilter.cs Co-authored-by: Stijn Moreels <[email protected]>
…ionOperationFilter.cs Co-authored-by: Stijn Moreels <[email protected]>
As per issue 463. This PR removes all dependency on Guard.NET. All checks done by Guard.NET have been replaced with
if
checks.Closes #463