Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Starts listening for incoming messages from a pipe client.
        /// </summary>
        public void Start()
        {
            TaskWorker tWorker = new TaskWorker();

            tWorker.WorkException += ThrowException;
            tWorker.DoWork(Listen);
        }