Skip to content
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

Added cancellation of requests using CancellationToken #22

Merged
merged 3 commits into from
Apr 17, 2017

Conversation

aKzenT
Copy link
Contributor

@aKzenT aKzenT commented Jan 10, 2017

Please see related issue #21

@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label Jan 10, 2017
@thinkingserious
Copy link
Contributor

Hello @aKzenT,

Thank you for the PR!

We will be reviewing this PR soon, in the mean time, if you have not, please be sure to sign our CLA so that we can merge your changes. Thanks again!

Team DX

@thinkingserious
Copy link
Contributor

Hello @aKzenT,

Do you mind sending over a signed CLA so I can review and merge?

Thanks!

@aKzenT
Copy link
Contributor Author

aKzenT commented Jan 26, 2017 via email

@thinkingserious
Copy link
Contributor

Thanks @aKzenT,

I do not see it however, can you please let me know from what email you sent it from? (Please reply to [email protected])

@thinkingserious
Copy link
Contributor

Hi @aKzenT,

I have not received the CLA or follow up email from you. Could you please resend or let me know what email address you used to send it? Thanks!

@aKzenT
Copy link
Contributor Author

aKzenT commented Feb 20, 2017

I send it again, now from another email address and to your own email address just in case.

@thinkingserious
Copy link
Contributor

@aKzenT,

We received it, thanks!

As for v9, it's available now:
https://github.com/sendgrid/sendgrid-csharp
https://www.nuget.org/packages/SendGrid

With Best Regards,

Elmer

i++;
}
result = RequestAsync(binder.Name.ToUpper(), requestBody: requestBody, queryParams: queryParams).ConfigureAwait(false);
result = RequestAsync(binder.Name.ToUpper(), cancellationToken, requestBody: requestBody, queryParams: queryParams).ConfigureAwait(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the cancellationToken parameter to the end for consistency with our v9 SDK.

/// <param name="requestBody">JSON formatted string</param>
/// <param name="queryParams">JSON formatted queary paramaters</param>
/// <returns>Response object</returns>
private async Task<Response> RequestAsync(string method, string requestBody = null, string queryParams = null)
private async Task<Response> RequestAsync(string method, CancellationToken cancellationToken, string requestBody = null, string queryParams = null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the cancellationToken parameter to the end for consistency with our v9 SDK.

@thinkingserious
Copy link
Contributor

Hi @aKzenT,

To merge this, could you please:

  1. Resolve the conflicts
  2. Give the cancellation token a default value so we don't have to make a breaking change

Thanks!

@thinkingserious thinkingserious merged commit 6561bbc into sendgrid:master Apr 17, 2017
@thinkingserious
Copy link
Contributor

Hello @aKzenT,

Thanks again for the PR!

We want to show our appreciation by sending you some swag. Could you please fill out this form so we can send it to you? Thanks!

Team SendGrid DX

@aKzenT
Copy link
Contributor Author

aKzenT commented Apr 17, 2017

Done, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: code review request requesting a community code review or review from Twilio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants