Minor cleanup of WindowsServices

This commit is contained in:
John Luo 2015-12-22 16:56:32 -08:00
parent 83c8816eb7
commit 4ec36de602
2 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,7 @@
using System.ServiceProcess; // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.ServiceProcess;
namespace Microsoft.AspNet.Hosting.WindowsServices namespace Microsoft.AspNet.Hosting.WindowsServices
{ {

View File

@ -1,8 +1,9 @@
using Microsoft.AspNet.Hosting.Internal; // Copyright (c) .NET Foundation. All rights reserved.
using Microsoft.Extensions.Configuration; // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.Extensions.DependencyInjection;
using System; using System;
using System.ServiceProcess; using System.ServiceProcess;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNet.Hosting.WindowsServices namespace Microsoft.AspNet.Hosting.WindowsServices
{ {
@ -11,9 +12,6 @@ namespace Microsoft.AspNet.Hosting.WindowsServices
/// </summary> /// </summary>
public class WebApplicationService : ServiceBase public class WebApplicationService : ServiceBase
{ {
private const string HostingJsonFile = "hosting.json";
private const string EnvironmentVariablesPrefix = "ASPNET_";
private const string ConfigFileKey = "config";
private IWebApplication _application; private IWebApplication _application;
private IDisposable _applicationShutdown; private IDisposable _applicationShutdown;
private bool _stopRequestedByWindows; private bool _stopRequestedByWindows;