using IPCLib; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RunWellSectionApp { public class IpcPipeClass { public string m_pipeId = ""; public PipeManager m_Pipe; public bool m_bUsePipe = false; public Process m_process; public int m_heartbeatTimeoutCount = 0; public IpcPipeClass() { Guid tGuid = Guid.NewGuid(); m_pipeId = tGuid.ToString(); } public void InitUsePiple( Action tMessageReceived, Action tConnectionStatusChanged, Action tHeartbeatTimeout) { m_Pipe = new PipeManager(m_pipeId, true); m_Pipe.MessageReceived += tMessageReceived; m_Pipe.ConnectionStatusChanged += tConnectionStatusChanged; m_Pipe.HeartbeatTimeout += tHeartbeatTimeout; ; } } }