Skip to content

Commit 8293498

Browse files
adding run after use (#14)
1 parent 1811971 commit 8293498

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
@@ -34,7 +34,6 @@ public static void Main(string[] args) {
3434
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");
3535
});
3636
});
37-
app.Run();
3837

3938
// Add a middleware to catch exceptions and stop the host gracefully
4039
app.Use(async (context, next) => {
@@ -48,5 +47,7 @@ public static void Main(string[] args) {
4847
lifetime?.StopApplication();
4948
}
5049
});
50+
51+
app.Run();
5152
}
5253
}

0 commit comments

Comments
 (0)