First Commit
This commit is contained in:
parent
bb40883c7d
commit
696158848f
18 changed files with 787 additions and 0 deletions
22
StitchATon/Utility/NamedPipe.cs
Normal file
22
StitchATon/Utility/NamedPipe.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System.Diagnostics;
|
||||
|
||||
namespace StitchATon.Utility;
|
||||
|
||||
public class PngNamedPipe : IDisposable
|
||||
{
|
||||
private ProcessStartInfo _mkfifoPs = new("mkfifo");
|
||||
private ProcessStartInfo _rmfifoPs = new("rm");
|
||||
public readonly string PipeFullname = Path.Join( Path.GetTempPath(), Guid.NewGuid() + ".png" );
|
||||
|
||||
public PngNamedPipe( )
|
||||
{
|
||||
_mkfifoPs.Arguments = PipeFullname;
|
||||
Process.Start( _mkfifoPs )?.WaitForExit();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_rmfifoPs.Arguments = PipeFullname;
|
||||
Process.Start( _rmfifoPs );
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue