示例#1
0
 internal static bool ShouldRunResponseBasedPassivePlugins()
 {
     if (PassivePlugin.GetInLinePluginsForResponse().Count > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
 public static void RunAllResponseBasedInlinePassivePlugins(Session IrSe)
 {
     foreach (string Name in PassivePlugin.GetInLinePluginsForResponse())
     {
         PassivePlugin P = PassivePlugin.Get(Name);
         if ((P.WorksOn == PluginWorksOn.Response) || (P.WorksOn == PluginWorksOn.Both))
         {
             if (P.CallingState == PluginCallingState.Inline)
             {
                 try
                 {
                     PluginEngine.RunPassivePlugin(P, IrSe);
                 }
                 catch (Exception Exp)
                 {
                     IronException.Report("Error executing 'BeforeResponseInterception' Passive Plugin : " + Name, Exp.Message, Exp.StackTrace);
                 }
             }
         }
     }
 }