You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the topic. While the new API provides the full v3 API functionality, which is welcome, it seems like a huge step back in C# API design.
How do I 'await' the API calls - we simply do not do synchronous network calls in our system (and frankly, nobody should be writing code that does them anymore).
The text was updated successfully, but these errors were encountered:
More specifically, how do I do the following with the new API:
SendGridMessage message = new SendGridMessage
{
To = new[] { from },
Bcc = emailAddresses.ToArray(),
From = from,
Subject = subject,
Html = body,
};
WebTransport transport = new WebTransport(_settings.Credentials);
await transport.DeliverAsync(message);
As per the topic. While the new API provides the full v3 API functionality, which is welcome, it seems like a huge step back in C# API design.
How do I 'await' the API calls - we simply do not do synchronous network calls in our system (and frankly, nobody should be writing code that does them anymore).
The text was updated successfully, but these errors were encountered: