-
Notifications
You must be signed in to change notification settings - Fork 50
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
.NET wrapper for SDK #193
.NET wrapper for SDK #193
Conversation
…commands through BitwardenClient class.
…ature/csharp_-wrapper
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 would also like to see us add the C# styles from bitwarden/server and add them into the root editor config and run dotnet format
. I would especially like a consistent bracing style and we use the C# (opening curly brace on new line) in server
. https://github.com/bitwarden/server/blob/e679d3127abfd976e3af3d02783d869da77fb590/.editorconfig#L34-L125
- created SafeHandle to be used - made BitwardenLibrary methods private and added wrapper - rename Settings to BitwardenSettings - rename Projects to ProjectsClient - rename Secrets to SecretsClient
…ature/csharp_-wrapper
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.
Other than my one comment, this has my approval. Very good work.
@AHollowedHunter Thank you for the interest. I'm very open to setting up a multi-target for .NET Standard 2.0. As it stands now, our only dependency is I don't think nullable should be a roadblock there. We just released |
Good to know, thanks for the info :) I'm going to try out this package on some .NET 6 stuff first and I'll provide any more feedback as appropriate :) |
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.
This is starting to wrap up. A few remaining things:
ClientSettings
cleanup.- Methods should unwrap the result and handle errors appropriately. In .NET this means throwing.
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.
Last round of changes and we should be good.
Please also run dotnet format
in the root of languages/csharp
which will format the files per the editorconfig.
Please run dotnet format in the root of languages/csharp which will format the files per the editorconfig. |
@vgrassia can you review the workflows again and approve if they look good? |
Type of change
Objective
Implemented .NET library that wraps native C library and exposed its commands through BitwardenClient class.
Code changes