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

Deadlock #237

Closed
walmon opened this issue Jun 16, 2016 · 4 comments
Closed

Deadlock #237

walmon opened this issue Jun 16, 2016 · 4 comments
Labels
status: duplicate duplicate issue

Comments

@walmon
Copy link

walmon commented Jun 16, 2016

Issue Summary

ASP.NET Web API 4.5.2 Application, sending email added c# libraries paste this code

Steps to Reproduce

  1. Install dlls from nuget Install-Package SendGrid

  2. added example code

    String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
    dynamic sg = new SendGridAPIClient(apiKey);

          Email from = new Email("test@example.com");
          String subject = "Hello World from the SendGrid CSharp Library";
          Email to = new Email("test@example.com");
          Content content = new Content("text/plain", "Textual content");
          Mail mail = new Mail(from, subject, to, content);
    
          dynamic response = sg.client.mail.send.post(requestBody: mail.Get());
    

then this never gets a response, sometimes deliver messages

Technical details:

  • sendgrid-csharp Version: master (latest commit: [commit number])
  • .NET Version: 4.5.2
@thinkingserious thinkingserious added the status: duplicate duplicate issue label Jun 16, 2016
@thinkingserious
Copy link
Contributor

Thanks @walmon,

We appreciate the issue!

This issue is a duplicate of #235, please follow that issue as I'll likely be looking into this issue tomorrow.

I'm thinking our examples need to be updated to account for the async calls in the HTTP client: https://github.com/sendgrid/csharp-http-client/blob/master/CSharpHTTPClient/Client.cs#L264

@walmon
Copy link
Author

walmon commented Jun 16, 2016

What is the work around? In previous versions the c# sdk was working, Im about to purchase the service but cant get it to work.

@thinkingserious
Copy link
Contributor

You can use: https://www.nuget.org/packages/Sendgrid/6.3.4

Thanks and welcome to SendGrid!

@walmon
Copy link
Author

walmon commented Jun 16, 2016

Awesome! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate duplicate issue
Projects
None yet
Development

No branches or pull requests

2 participants