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

IoReporter

public class IoReporter : IIoReporter
Represents a class object to perform I/O operations, publish warning messages, and retry the operation.
protected IAppSettings CachedAppSettings { get; }

Gets the cached application settings.

Gets the cancellation token.

public IoReporterContext Context { get; }

Gets the I/O reporter context.

protected int IoErrorNumberOfRetries { get; }

Gets the maximum number of retries. This value is cached for performance critical code.

protected int IoErrorWaitTimeInSeconds { get; }

Gets the wait time in seconds between retry attempts. This value is cached for performance critical code.

protected ILog Logger { get; }

Gets the Relativity logger.

public IoReporter(IoReporterContext context, ILog logger, CancellationToken token)

Initializes a new instance of the IoReporter class.

public static string BuildIoReporterWarningMessage(Exception exception, double timeoutSeconds)

Creates warning message from exception.

public static string BuildIoReporterWarningMessage(Exception exception, double timeoutSeconds, int retryCount, int totalRetryCount)

Creates warning message out of passed exception.

public virtual void CopyFile(string sourceFileName, string destFileName, bool overwrite, int lineNumber)

public virtual bool GetFileExists(string fileName, int lineNumber)

public virtual long GetFileLength(string fileName, int lineNumber)

public virtual void PublishRetryMessage(Exception exception, TimeSpan timeSpan, int retryCount, int totalRetryCount, long lineNumber)

public virtual void PublishWarningMessage(IoWarningEventArgs args)