2023-07-03 08:44:50 +00:00
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Text.Json;
|
|
|
|
|
|
using System.Threading;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Flow.Launcher.Core.Plugin
|
|
|
|
|
|
{
|
|
|
|
|
|
internal sealed class ExecutablePluginV2 : ProcessStreamPluginV2
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override ProcessStartInfo StartInfo { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public ExecutablePluginV2(string filename)
|
|
|
|
|
|
{
|
2024-02-16 04:14:03 +00:00
|
|
|
|
StartInfo = new ProcessStartInfo { FileName = filename };
|
2023-07-03 08:44:50 +00:00
|
|
|
|
}
|
2024-02-19 05:46:24 +00:00
|
|
|
|
|
|
|
|
|
|
protected override MessageHandlerType MessageHandler { get; } = MessageHandlerType.NewLineDelimited;
|
2023-07-03 08:44:50 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|