//Constructor /// <summary> /// Creates an initialized instance /// </summary> /// <param name="availableFieldNames">Collection of names of all available input fields</param> /// <param name="settings">Configuration</param> public LogTransformer(List <string> availableFieldNames, LogTransformerSettings settings) { _settings = (LogTransformerSettings)settings.DeepClone(); _fieldIdx = availableFieldNames.IndexOf(_settings.InputFieldName); return; }
//Constructor /// <summary> /// Creates an initialized instance. /// </summary> /// <param name="availableFieldNames">The collection of names of all available input fields.</param> /// <param name="cfg">The configuration.</param> public LogTransformer(List <string> availableFieldNames, LogTransformerSettings cfg) { _cfg = (LogTransformerSettings)cfg.DeepClone(); _fieldIdx = availableFieldNames.IndexOf(_cfg.InputFieldName); return; }