/// <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 PreventPluginHandlerExecution /// </summary> /// <typeparam name="T">The type of the plugin.</typeparam> /// <returns></returns> public static bool HasPluginHandlerExecutionBeenPrevented <T>(this IPluginExecutionContext context, RegisteredEvent @event) where T : IRegisteredEventsPluginHandler { var preventionName = GetPreventPluginHandlerSharedVariableName(typeof(T).FullName); return(context.HasPluginHandlerExecutionBeenPreventedInternal(@event, preventionName)); }