private void RestoreCurrent() { if (EnterpriseServices.CreatedServiceDomain) { EnterpriseServices.LeaveServiceDomain(); } // Only restore the value that was actually in the context. _threadContextData.CurrentTransaction = _contextTransaction; }