in src/main/csharp/Session.cs [486:508]
public void Close()
{
lock(this)
{
if(closed)
{
return;
}
try
{
this.xmsSession.Close();
}
catch(Exception ex)
{
ExceptionUtil.WrapAndThrowNMSException(ex);
}
finally
{
closed = true;
}
}
}