Exemple #1
0
        /// <summary>
        /// Determines whether a shared variable exists that specifies that the plugin or the plugin and specifc message type should be prevented from executing.
        /// This is used in conjunction with PreventPluginExecution
        /// </summary>
        /// <typeparam name="T">The type of the plugin.</typeparam>
        /// <returns></returns>
        public static bool HasPluginExecutionBeenPrevented <T>(this IPluginExecutionContext context, RegisteredEvent @event)
            where T : IRegisteredEventsPlugin
        {
            var preventionName = GetPreventPluginSharedVariableName(typeof(T).FullName);

            return(context.HasPluginExecutionBeenPreventedInternal(@event, preventionName));
        }