Ejemplo n.º 1
0
        /// <summary>
        /// Adds a shared Variable to the context that is checked by the GenericPluginBase to determine if it should be skipped  * NOTE * The Plugin has to finish executing for the Shared Variable to be passed to a new plugin
        /// </summary>
        /// <param name="context">The context.</param>
        /// <param name="pluginTypeFullName">The Full Type Name of the Plugin to Prevent</param>
        /// <param name="event">Type of the event.</param>
        /// <exception cref="ArgumentNullException"></exception>
        public static void PreventPluginExecution(this IPluginExecutionContext context, string pluginTypeFullName, RegisteredEvent @event)
        {
            if (@event == null)
            {
                throw new ArgumentNullException(nameof(@event));
            }

            context.PreventPluginExecution(pluginTypeFullName, @event.MessageName, @event.EntityLogicalName, @event.Stage);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a shared Variable to the context that is checked by the GenericPluginBase to determine if it should be skipped  * NOTE * The Plugin has to finish executing for the Shared Variable to be passed to a new plugin
 /// </summary>
 /// <typeparam name="T">The type of the plugin.</typeparam>
 public static void PreventPluginExecution <T>(this IPluginExecutionContext context, string messageName = null, string logicalName = null, PipelineStage?stage = null)
     where T : IRegisteredEventsPlugin
 {
     context.PreventPluginExecution(typeof(T).FullName, messageName, logicalName, stage);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Adds a shared Variable to the context that is checked by the GenericPluginBase to determine if it should be skipped  * NOTE * The Plugin has to finish executing for the Shared Variable to be passed to a new plugin
 /// </summary>
 /// <typeparam name="T">The type of the plugin.</typeparam>
 /// <param name="context">The context.</param>
 /// <param name="event">Type of the event.</param>
 public static void PreventPluginExecution <T>(this IPluginExecutionContext context, RegisteredEvent @event)
     where T : IRegisteredEventsPlugin
 {
     context.PreventPluginExecution(typeof(T).FullName, @event);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Adds a shared Variable to the context that is checked by the GenericPluginBase to determine if it should be skipped  * NOTE * The Plugin has to finish executing for the Shared Variable to be passed to a new plugin
 /// </summary>
 /// <typeparam name="T">The type of the plugin.</typeparam>
 /// <param name="context">The context.</param>
 /// <param name="messageType">Type of the message.</param>
 public static void PreventPluginExecution <T>(this IPluginExecutionContext context, MessageType messageType)
     where T : IRegisteredEventsPlugin
 {
     context.PreventPluginExecution <T>(messageType.Name);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Adds a shared Variable to the context that is checked by the GenericPluginBase to determine if it should be skipped  * NOTE * The Plugin has to finish executing for the Shared Variable to be passed to a new plugin
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="pluginTypeFullName">The Full Type Name of the Plugin to Prevent</param>
 /// <param name="messageType">Type of the message.</param>
 public static void PreventPluginExecution(this IPluginExecutionContext context, string pluginTypeFullName, MessageType messageType)
 {
     context.PreventPluginExecution(pluginTypeFullName, messageType.Name);
 }