public static void RegisterExtension(CSharpTaintAnalyzerExtension extension)
 {
     // Must be executed in a synchronous way for testing purposes
     lock (extensions)
     {
         // Makes sure an extension of the same time isn't already registered before adding it to the list
         if (!extensions.Any(x => x.GetType().FullName.Equals((extension).GetType().FullName)))
         {
             extensions.Add(extension);
             CSharpCodeEvaluation.extensions = extensions;
         }
     }
 }
Example #2
0
 public static void RegisterExtension(CSharpTaintAnalyzerExtension extension)
 {
     extensions.Add(extension);
     CSharpCodeEvaluation.extensions = extensions;
 }