Skip to content

Commit 341c542

Browse files
committed
Trivial sample improvements
1 parent 5602d03 commit 341c542

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

samples/SimpleWebSample/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using System;
22
using System.IO;
3-
using Microsoft.AspNetCore;
43
using Microsoft.AspNetCore.Hosting;
54
using Microsoft.Extensions.Configuration;
65
using Serilog;
6+
77
namespace SimpleWebSample
88
{
99
public class Program
@@ -41,7 +41,7 @@ public static int Main(string[] args)
4141
}
4242
catch (Exception ex)
4343
{
44-
Log.Fatal(ex, "Unhandled exception");
44+
Log.Fatal(ex, "Host terminated unexpectedly");
4545
return 1;
4646
}
4747
finally

samples/SimpleWebSample/Startup.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
5-
using Microsoft.AspNetCore.Builder;
1+
using Microsoft.AspNetCore.Builder;
62
using Microsoft.AspNetCore.Hosting;
73
using Microsoft.AspNetCore.Http;
84
using Microsoft.Extensions.Configuration;

0 commit comments

Comments
 (0)