using System.Diagnostics;

namespace ZB.MOM.WW.MxGateway.Server.Workers;

/// <summary>Factory for creating and starting worker processes.</summary>
public interface IWorkerProcessFactory
{
    /// <summary>Starts a worker process with the specified start information.</summary>
    /// <param name="startInfo">Process start configuration.</param>
    /// <returns>The started worker process.</returns>
    IWorkerProcess Start(ProcessStartInfo startInfo);
}
