Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit be3675b

Browse files
committed
React to changes
1 parent f7134e7 commit be3675b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/TestSites/DependencyInjectionApp/Program.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,15 @@ static void Main(string[] args)
3131
{
3232
app.Run(context =>
3333
{
34-
context.RequestServices.GetService<IService<IAnotherService>>();
35-
return context.Response.WriteAsync("Success");
34+
try
35+
{
36+
context.RequestServices.GetService<IService<IAnotherService>>();
37+
return context.Response.WriteAsync("Success");
38+
}
39+
catch (Exception ex)
40+
{
41+
return context.Response.WriteAsync(ex.ToString());
42+
}
3643
});
3744
})
3845
.Build().Run();

0 commit comments

Comments
 (0)