Refactor package object model.

This commit is contained in:
Christian Kratky
2020-10-28 23:11:12 +01:00
parent adce5662eb
commit b7fb0c1002
71 changed files with 761 additions and 582 deletions
+1 -8
View File
@@ -4,7 +4,7 @@ namespace MQTTnet.Internal
{
public abstract class Disposable : IDisposable
{
protected bool IsDisposed { get; private set; } = false;
protected bool IsDisposed { get; private set; }
protected void ThrowIfDisposed()
{
@@ -18,13 +18,6 @@ namespace MQTTnet.Internal
{
}
// TODO: override a finalizer only if Dispose(bool disposing) above has code to free unmanaged resources.
// ~Disposable()
// {
// // Do not change this code. Put cleanup code in Dispose(bool disposing) above.
// Dispose(false);
// }
// This code added to correctly implement the disposable pattern.
public void Dispose()
{
+1 -1
View File
@@ -8,7 +8,7 @@ namespace MQTTnet.Internal
{
public class TestMqttChannel : IMqttChannel
{
private readonly MemoryStream _stream;
readonly MemoryStream _stream;
public TestMqttChannel(MemoryStream stream)
{