FIx for IsStarted (#93)

This commit is contained in:
Stef Heyenrath
2018-02-28 08:34:57 +01:00
parent 938d3fb095
commit 17741cbc50
3 changed files with 6 additions and 6 deletions

View File

@@ -87,20 +87,20 @@ namespace WireMock.Owin
#endif
.Build();
IsStarted = true;
#if NETSTANDARD1_3
Console.WriteLine("WireMock.Net server using netstandard1.3");
return Task.Run(() =>
{
_host.Run(_cts.Token);
IsStarted = true;
}, _cts.Token);
#else
System.Console.WriteLine("WireMock.Net server using netstandard2.0");
IsStarted = true;
return Task.Run(() =>
{
_host.Run();
IsStarted = true;
}, _cts.Token);
#endif
}