diff --git a/src/Microsoft.AspNetCore.Hosting/Internal/HostedServiceExecutor.cs b/src/Microsoft.AspNetCore.Hosting/Internal/HostedServiceExecutor.cs index ac8afb41d6..ba6631a225 100644 --- a/src/Microsoft.AspNetCore.Hosting/Internal/HostedServiceExecutor.cs +++ b/src/Microsoft.AspNetCore.Hosting/Internal/HostedServiceExecutor.cs @@ -1,4 +1,7 @@ -using System; +// 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; using System.Collections.Generic; using Microsoft.Extensions.Logging; diff --git a/test/Microsoft.AspNetCore.Hosting.Tests/WebHostTests.cs b/test/Microsoft.AspNetCore.Hosting.Tests/WebHostTests.cs index 928a857ab0..bab6bdffaa 100644 --- a/test/Microsoft.AspNetCore.Hosting.Tests/WebHostTests.cs +++ b/test/Microsoft.AspNetCore.Hosting.Tests/WebHostTests.cs @@ -364,7 +364,6 @@ namespace Microsoft.AspNetCore.Hosting var lifetime = host.Services.GetRequiredService(); lifetime.StopApplication(); - host.Start(); var svc = (TestHostedService)host.Services.GetRequiredService(); Assert.True(svc.StartCalled);