From f36faf2a72fce71fcf0a45a741ea551df21477ed Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Wed, 21 Oct 2015 10:20:10 -0700 Subject: [PATCH] React to hosting changes --- src/Microsoft.AspNet.Server.WebListener/Program.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Microsoft.AspNet.Server.WebListener/Program.cs b/src/Microsoft.AspNet.Server.WebListener/Program.cs index ef795cb..a13e2ed 100644 --- a/src/Microsoft.AspNet.Server.WebListener/Program.cs +++ b/src/Microsoft.AspNet.Server.WebListener/Program.cs @@ -28,18 +28,10 @@ namespace Microsoft.AspNet.Server.WebListener { public class Program { - private readonly IServiceProvider _serviceProvider; - - public Program(IServiceProvider serviceProvider) + public static void Main(string[] args) { - _serviceProvider = serviceProvider; - } - - public void Main(string[] args) - { - var program = new Hosting.Program(_serviceProvider); var mergedArgs = new[] { "--server", "Microsoft.AspNet.Server.WebListener" }.Concat(args).ToArray(); - program.Main(mergedArgs); + Hosting.Program.Main(mergedArgs); } } }