/// <summary> /// Starts listening for Airfoil messages. /// The Agent starts automatically when created, so it is generally not necessary to call this. /// </summary> public void Start() { if (ipcServer == null) { ipcServer = new IpcServer($"{ListenForProcessId}_airfoil_metadata", this, 1); } }
/// <summary> /// Shuts down the server and stops listening for messages. /// </summary> public void Stop() { if (ipcServer != null) { ipcServer.IpcServerStop(); ipcServer = null; messageBuffer.Reset(); } }