Ejemplo n.º 1
0
        /// <summary>
        /// Disposes the scope, calling all dispose actions on the instances that where created in this scope.
        /// </summary>
        public void Dispose()
        {
            Disposables.Invoke();

            if (Finalizers.Count > 0)
            {
                foreach (ActionList <object> objectActionList in Finalizers)
                {
                    objectActionList.Invoke();
                }
            }
        }