コード例 #1
0
        public override void InitializeNewFile(string headerLine, FileMinerDto basicDataFromCase, string path)
        {
            base.InitializeNewFile(headerLine, basicDataFromCase, path);

            _nrOfColumns = base.ColumnNames.Count;

            if (!base.ColumnNames.TryGetValue("userid", out _userIdColumnNr))
            {
                Log.To.Main.Add($"Failed finding userId column in log {base.CurrentFilePath}");
            }
            if (!base.ColumnNames.TryGetValue("objectid", out _objectIdColumnNr))
            {
                Log.To.Main.Add($"Failed finding objectid column in log {base.CurrentFilePath}");
            }
            if (!base.ColumnNames.TryGetValue("description", out _descriptionColumnNr))
            {
                Log.To.Main.Add($"Failed finding Description column in log {base.CurrentFilePath}");
            }
            if (!base.ColumnNames.TryGetValue("proxysessionid", out _proxySessionIdColumnNr))
            {
                Log.To.Main.Add($"Failed finding Proxy Session Id column in log {base.CurrentFilePath}");
            }
        }
コード例 #2
0
 public virtual void InitializeNewFile(string headerLine, FileMinerDto basicDataFromCase, string path)
 {
     BasicDataFromCase = basicDataFromCase;
     AnalyzeHeaderBase(headerLine);
     CurrentFilePath = path;
 }