ExoModel.ModelEventScope.PerformAction C# (CSharp) Method

PerformAction() static private method

Performs the specified action inside the current ModelEventScope.
static private PerformAction ( System.Action action ) : void
action System.Action
return void
        void PerformAction(Action action)
        {
            try
            {
                action();
            }
            catch (Exception actionException)
            {
                try
                {
                    Exit();
                }
                catch (Exception disposalException)
                {
                    throw new ScopeException(disposalException, actionException);
                }

                throw;
            }
            Exit();
        }