mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-30 03:54:04 +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
|
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