Skip to content

Commit

Permalink
Fixing sequencing typo (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtallcampbell authored Jul 22, 2024
1 parent de0b3b4 commit 6f90a05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public static void Main(string[] args) {
await context.Response.WriteAsync("Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909");
});
});
app.Run();

// Add a middleware to catch exceptions and stop the host gracefully
app.Use(async (context, next) => {
Expand All @@ -51,5 +50,7 @@ public static void Main(string[] args) {
lifetime?.StopApplication();
}
});

app.Run();
}
}

0 comments on commit 6f90a05

Please sign in to comment.