Skip to content

Commit 17cba4d

Browse files
Fixing sequencing typo (#11)
1 parent ac043f4 commit 17cba4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public static void Main(string[] args) {
3030
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");
3131
});
3232
});
33-
app.Run();
3433

3534
// Add a middleware to catch exceptions and stop the host gracefully
3635
app.Use(async (context, next) => {
@@ -44,5 +43,7 @@ public static void Main(string[] args) {
4443
lifetime?.StopApplication();
4544
}
4645
});
46+
47+
app.Run();
4748
}
4849
}

0 commit comments

Comments
 (0)