mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
196 fix: set IsStarted = true in a IApplicationLifetime.ApplicationStarted listener (#197)
This commit is contained in:
committed by
Stef Heyenrath
parent
2075589e98
commit
5ccb992201
@@ -104,7 +104,9 @@ namespace WireMock.Owin
|
||||
{
|
||||
try
|
||||
{
|
||||
IsStarted = true;
|
||||
var appLifetime = (IApplicationLifetime) _host.Services.GetService(typeof(IApplicationLifetime));
|
||||
appLifetime.ApplicationStarted.Register(() => IsStarted = true);
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
_logger.Info("WireMock.Net server using netstandard1.3");
|
||||
#elif NETSTANDARD2_0
|
||||
|
||||
Reference in New Issue
Block a user