NullProcessErrorWriter
Represents a null design pattern for occasions where a valid IProcessErrorWriter is referenced but whose functionality isn't actually used or required. This class cannot be inherited.
using System;
using System.Threading;
namespace Relativity.DataExchange.Process
{
public sealed class NullProcessErrorWriter : IProcessErrorWriter, IDisposable
{
public bool HasErrors => false;
public ProcessErrorReport BuildErrorReport(CancellationToken token)
{
return new ProcessErrorReport();
}
public void Close()
{
}
public void Dispose()
{
}
public void Write(string key, string description)
{
}
}
}