public void Commit()
{
CheckForOpenTransaction();
// we have to check for an empty endpoint because we dont have one until our first request
if (Endpoint == null)
{
CleanupAfterClosedTransaction();
return;
}
DoCommit(Endpoint, _client.ExecutionConfiguration, _client.Serializer, CustomHeaders);
CleanupAfterClosedTransaction();
}