mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-30 06:12:18 +02: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
|
try
|
||||||
{
|
{
|
||||||
IsStarted = true;
|
var appLifetime = (IApplicationLifetime) _host.Services.GetService(typeof(IApplicationLifetime));
|
||||||
|
appLifetime.ApplicationStarted.Register(() => IsStarted = true);
|
||||||
|
|
||||||
#if NETSTANDARD1_3
|
#if NETSTANDARD1_3
|
||||||
_logger.Info("WireMock.Net server using netstandard1.3");
|
_logger.Info("WireMock.Net server using netstandard1.3");
|
||||||
#elif NETSTANDARD2_0
|
#elif NETSTANDARD2_0
|
||||||
|
|||||||
Reference in New Issue
Block a user