Ejemplo n.º 1
0
        /// <exclude />
        public static IEnumerable <EntityToken> GetParentToChildHooks(EntityToken parentEntityToken)
        {
            try
            {
                using (GlobalInitializerFacade.CoreIsInitializedScope)
                {
                    return(_hookingFacade.GetParentToChildHooks(parentEntityToken));
                }
            }
            catch (Exception ex)
            {
                Log.LogCritical("HookingFacade", ex);

                GlobalInitializerFacade.FatalResetTheSystem();

                throw;
            }
        }
Ejemplo n.º 2
0
        /// <exclude />
        public static void AddHooks(IEnumerable <EntityTokenHook> entityTokenHooks)
        {
            try
            {
                using (GlobalInitializerFacade.CoreIsInitializedScope)
                {
                    _hookingFacade.AddHooks(entityTokenHooks);
                }
            }
            catch (Exception ex)
            {
                Log.LogCritical("HookingFacade", ex);

                GlobalInitializerFacade.FatalResetTheSystem();

                throw;
            }
        }