<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

kCura.WinEDDS.LoadFilePreProcessor

namespace kCura.WinEDDS { public class LoadFilePreProcessor : LoadFileReader { public enum EventType { Begin, Complete, Progress, Cancel } public class EventArgs { public long NewlinesRead { get; } public long BytesRead { get; } public long TotalBytes { get; } public long StepSize { get; } public EventType Type { get; } public EventArgs(EventType type, long newlines, long bytes, long total, long step); } public delegate void OnEventEventHandler (EventArgs e); public class HaltListener { public delegate void StopProcessEventHandler (); public event StopProcessEventHandler StopProcess; public HaltListener(); public void Halt(); } public event OnEventEventHandler OnEvent; protected void ProcessStart(long newlines, long bytes, long total, long step); protected void ProcessProgress(long newlines, long bytes, long total, long step); protected void ProcessComplete(long newlines, long bytes, long total, long step); protected void ProcessCancel(long newlines, long bytes, long total, long step); protected void RaiseOnEvent(EventType type, long newlines, long bytes, long total, long step); public LoadFilePreProcessor(LoadFile args, bool trackErrorsAsFieldValues, Func<string> correlationIdFunc); public void CountLines(); public object ReadFileSimple(string path); public void StopCounting(); } }