internal void ClearForReconnect()
{
lock (contextLock)
{
x224ConnectionRequestPdu = null;
x224ConnectionConfirmPdu = null;
x224NegotiateFailurePdu = null;
mcsConnectInitialPdu = null;
mcsConnectResponsePdu = null;
userChannelId = 0;
ioChannelId = 0;
serverChannelId = 0;
clientInfo = null;
securityExchangePdu = null;
licenseErrorPdu = null;
demandActivePdu = null;
comfirmActivePdu = null;
logonInfoV1 = new TS_LOGON_INFO();
logonInfoV2 = new TS_LOGON_INFO_VERSION_2();
logonErrorsInfo = null;
encryptionCount = 0;
decryptionCount = 0;
if (encryptionAlgorithm != null)
{
encryptionAlgorithm.Dispose();
encryptionAlgorithm = null;
}
if (ioDecompressor != null)
{
ioDecompressor.Dispose();
ioDecompressor = null;
}
if (ioCompressor != null)
{
ioCompressor.Dispose();
ioCompressor = null;
}
}
}