Using block in the externally controlled example (#1422)
This commit is contained in:
parent
5227de9a31
commit
0b6dbab37a
|
|
@ -38,8 +38,10 @@ namespace SampleStartups
|
|||
|
||||
public async Task StopAsync()
|
||||
{
|
||||
await _host.StopAsync(TimeSpan.FromSeconds(5));
|
||||
_host.Dispose();
|
||||
using (_host)
|
||||
{
|
||||
await _host.StopAsync(TimeSpan.FromSeconds(5));
|
||||
}
|
||||
}
|
||||
|
||||
public void AddUrl(string url)
|
||||
|
|
|
|||
Loading…
Reference in New Issue