rdt-client/server/RdtClient.Service/Wrappers/IProcess.cs
Cucumberrbob fd073b4762
Add interfaces for TorrentData, Downloads, Process, ProcessFactory
Making them interfaces lets us dependency inject them, allowing a given class to be tested.
2025-02-17 21:57:29 +00:00

16 lines
395 B
C#

using System.Diagnostics;
namespace RdtClient.Service.Wrappers;
public interface IProcess : IDisposable
{
event EventHandler<String?>? OutputDataReceived;
event EventHandler<String?>? ErrorDataReceived;
public ProcessStartInfo StartInfo { get; set; }
void BeginOutputReadLine();
void BeginErrorReadLine();
Boolean WaitForExit(Int32 milliseconds);
void Start();
}