fix #11114 by setting DesignerCategory for WebHostService (#11123)

This commit is contained in:
Andrew Stanton-Nurse 2019-06-14 13:48:20 -07:00 committed by GitHub
parent cd7eda9a33
commit a79bb2a79d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
namespace Microsoft.AspNetCore.Hosting.WindowsServices namespace Microsoft.AspNetCore.Hosting.WindowsServices
{ {
[System.ComponentModel.DesignerCategoryAttribute("Code")]
public partial class WebHostService : System.ServiceProcess.ServiceBase public partial class WebHostService : System.ServiceProcess.ServiceBase
{ {
public WebHostService(Microsoft.AspNetCore.Hosting.IWebHost host) { } public WebHostService(Microsoft.AspNetCore.Hosting.IWebHost host) { }

View File

@ -12,6 +12,7 @@ namespace Microsoft.AspNetCore.Hosting.WindowsServices
/// <summary> /// <summary>
/// Provides an implementation of a Windows service that hosts ASP.NET Core. /// Provides an implementation of a Windows service that hosts ASP.NET Core.
/// </summary> /// </summary>
[DesignerCategory("Code")]
public class WebHostService : ServiceBase public class WebHostService : ServiceBase
{ {
private readonly IWebHost _host; private readonly IWebHost _host;