-
Notifications
You must be signed in to change notification settings - Fork 587
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
Few Codebase improvements #928
Comments
Hello @gethari, Thanks for contributing to our C# community! We certainly welcome PRs and in this case a sample PR would be a great start to get the conversation started. With best regards, Elmer |
@thinkingserious Please ignore the test project changes, i was experimenting with it. The other changes are
|
@thinkingserious any update on this ? |
@gethari Are you aware of the consequences to your suggestions?
ISendGridClient myClient = ...
var urlPath = myClient.UrlPath;
// No longer compile as the property is removed from the interface
SendGrid.Helpers.Mail.Attachment attachment = new Attachment();
// No longer compiles as the namespace has changed |
Thanks for taking the time to review the changes and provide feedback! |
Issue Summary
I have ran through the repo, and found some of my findings here. If my findings are valid i will go ahead to send a PR.
Code style
The Qualifier
this
is redundant and there are 61 occurrences. Some people consider this as different. But ill leave this according to you as this is just a visual overhaul.SendGrid.Helpers.Mail.Models
instead ofSendGrid.Helpers.Mail
Unused methods and properties
In the
ISendGridClient
interface properties like UrlPath,Version,MediaType,AddAuthorization and the methods likeDeserializeResponseBodyAsync
andDeserializeResponseBodyAsync
Test project
The test project is referencing
.NET CORE 1.0
. We should migrate it to the latest version of.NET Core
atleast to 2.2.And the
Integration.cs
is crossing 6K lines now, we should partition the file and split it so it would be easier to move forwardThe text was updated successfully, but these errors were encountered: