/// <summary> /// Files the line can be ignored. /// </summary> /// <param name="domainEventFileLine">The domain event file line.</param> /// <param name="fileProfileFileFormatHandler">The file profile file format handler.</param> /// <returns></returns> private Boolean FileLineCanBeIgnored(String domainEventFileLine, String fileProfileFileFormatHandler) { // Ignore empty files if (String.IsNullOrEmpty(domainEventFileLine)) { return(true); } IFileFormatHandler fileFormatHandler = this.FileFormatHandlerResolver(fileProfileFileFormatHandler); return(fileFormatHandler.FileLineCanBeIgnored(domainEventFileLine)); }
/// <summary> /// Parses the file line. /// </summary> /// <param name="domainEventFileLine">The domain event file line.</param> /// <param name="fileProfileFileFormatHandler">The file profile file format handler.</param> /// <returns></returns> private Dictionary <String, String> ParseFileLine(String domainEventFileLine, String fileProfileFileFormatHandler) { try { IFileFormatHandler fileFormatHandler = this.FileFormatHandlerResolver(fileProfileFileFormatHandler); return(fileFormatHandler.ParseFileLine(domainEventFileLine)); } catch (InvalidDataException iex) { Logger.LogWarning(iex.Message); return(null); } }