mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-14 04:43:54 +01:00
196 fix: set IsStarted = true in a IApplicationLifetime.ApplicationStarted listener (#197)
This commit is contained in:
1 parent
2075589e98
commit
5ccb992201
1 file changed
+3
-1
@@ -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