Added disposable for HTTPListener (#21) · Code-Sharp/uHttpSharp@c8166a8 · GitHub
Skip to content

Commit c8166a8

Browse files
gavazquezshanielh
authored andcommitted
Added disposable for HTTPListener (#21)
1 parent 0adc4a2 commit c8166a8

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

Lines changed: 4 additions & 3 deletions

‎uhttpsharp/Listeners/SslListenerDecoerator.cs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ public async Task<IClient> GetClient()
1919
{
2020
return new ClientSslDecorator(await _child.GetClient().ConfigureAwait(false), _certificate);
2121
}
22+
23+
public void Dispose()
24+
{
25+
_child.Dispose();
26+
}
2227
}
23-
}
28+
}

‎uhttpsharp/Listeners/TcpListenerAdapter.cs‎

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)