Exemplo n.º 1
0
        private static void ProcessArtifacts(TLArtifactsCollection listOfArtifacts, PreprocessorCleanUpComponentConfig config)
        {
            if (listOfArtifacts == null)
            {
                throw new ComponentException("Received null listofArtifacts");
            }

            foreach (TLArtifact artifact in listOfArtifacts.Values)
            {
                artifact.Text = PreprocessorCleanUp.Process(artifact.Text, config.RemoveDigits);
            }
        }
        private static void ProcessArtifacts(TLArtifactsCollection listOfArtifacts, PreprocessorCleanUpComponentConfig config)
        {
            if (listOfArtifacts == null)
            {
                throw new ComponentException("Received null listofArtifacts");
            }

            foreach (TLArtifact artifact in listOfArtifacts.Values)
            {
                artifact.Text = PreprocessorCleanUp.Process(artifact.Text, config.RemoveDigits);
            }
        }
Exemplo n.º 3
0
 public PreprocessorCleanUpComponent(ComponentLogger log)
     : base(log)
 {
     _config       = new PreprocessorCleanUpComponentConfig();
     Configuration = _config;
 }
 public PreprocessorCleanUpComponent(ComponentLogger log)
     : base(log)
 {
     _config = new PreprocessorCleanUpComponentConfig();
     Configuration = _config;
 }