public Close ( System.TimeSpan timeout, Information options ) : void | ||
timeout | System.TimeSpan | |
options | Information | |
return | void |
public override void Close(TimeSpan timeout, Information options)
{
if (_disposed) throw new ObjectDisposedException(this.GetType().FullName);
if (!_connect) throw new ConnectionException();
lock (this.ThisLock)
{
if (_connection != null)
{
try
{
_connection.Close(timeout);
}
catch (Exception)
{
}
_connection = null;
}
_connect = false;
}
}