示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <summary>
 /// Shuts down the server and stops listening for messages.
 /// </summary>
 public void Stop()
 {
     if (ipcServer != null)
     {
         ipcServer.IpcServerStop();
         ipcServer = null;
         messageBuffer.Reset();
     }
 }