private void CheckForOpenTransaction()
{
if (IsOpen)
{
return;
}
string endPointText = null;
if (Endpoint != null)
{
endPointText = Endpoint.ToString();
}
throw new ClosedTransactionException(endPointText);
}