Skip to content

Commit

Permalink
docs: Update Readme to C# 7.x syntax (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
aevitas authored May 15, 2020
1 parent cf61849 commit 22d9430
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,7 @@ namespace Example
{
internal class Example
{
private static void Main()
{
Execute().Wait();
}

static async Task Execute()
internal static async Task Main(string[] args)
{
var apiKey = Environment.GetEnvironmentVariable("NAME_OF_THE_ENVIRONMENT_VARIABLE_FOR_YOUR_SENDGRID_KEY");
var client = new SendGridClient(apiKey);
Expand Down Expand Up @@ -151,12 +146,7 @@ namespace Example
{
internal class Example
{
private static void Main()
{
Execute().Wait();
}

static async Task Execute()
internal static async Task Main(string[] args)
{
var apiKey = Environment.GetEnvironmentVariable("NAME_OF_THE_ENVIRONMENT_VARIABLE_FOR_YOUR_SENDGRID_KEY");
var client = new SendGridClient(apiKey);
Expand Down Expand Up @@ -187,12 +177,7 @@ namespace Example
{
internal class Example
{
private static void Main()
{
Execute().Wait();
}

static async Task Execute()
internal static async Task Main(string[] args)
{
var apiKey = Environment.GetEnvironmentVariable("NAME_OF_THE_ENVIRONMENT_VARIABLE_FOR_YOUR_SENDGRID_KEY");
var client = new SendGridClient(apiKey);
Expand Down

0 comments on commit 22d9430

Please sign in to comment.