ConnectionManager.Close takes the same optional parameters as Connection.Close

This commit is contained in:
André Straubmeier 2020-08-17 13:31:15 +02:00
parent 950b256c27
commit 5fdffff5c4

View File

@ -36,7 +36,10 @@ public long UserData
set => Connection.UserData = value;
}
public void Close() => Connection.Close();
public void Close( bool linger = false, int reasonCode = 0, string debugString = "Closing Connection" )
{
Connection.Close( linger, reasonCode, debugString );
}
public override string ToString() => Connection.ToString();