/// <summary> /// Sends a message to the pipe server. /// </summary> /// <param name="message">The message to send to the pipe server.</param> public void SendMessage(string message) { TaskWorker tWorker = new TaskWorker(); tWorker.WorkException += ThrowException; tWorker.DoWork(Send, message); }
/// <summary> /// Starts listening for incoming messages from a pipe client. /// </summary> public void Start() { TaskWorker tWorker = new TaskWorker(); tWorker.WorkException += ThrowException; tWorker.DoWork(Listen); }