CR feedback
- Added license to file - Removed extra space
This commit is contained in:
parent
80ae7f056c
commit
2c5dc9a75c
|
|
@ -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 System.Collections.Generic;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -364,7 +364,6 @@ namespace Microsoft.AspNetCore.Hosting
|
||||||
var lifetime = host.Services.GetRequiredService<IApplicationLifetime>();
|
var lifetime = host.Services.GetRequiredService<IApplicationLifetime>();
|
||||||
lifetime.StopApplication();
|
lifetime.StopApplication();
|
||||||
|
|
||||||
|
|
||||||
host.Start();
|
host.Start();
|
||||||
var svc = (TestHostedService)host.Services.GetRequiredService<IHostedService>();
|
var svc = (TestHostedService)host.Services.GetRequiredService<IHostedService>();
|
||||||
Assert.True(svc.StartCalled);
|
Assert.True(svc.StartCalled);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue