view Pml/Channels/IPmlChannel.cs @ 81:3352f89cf6f5

FBGUI ContainerControl fixes (client area, keyboard capture)
author Ivo Smits <Ivo@UCIS.nl>
date Sun, 23 Feb 2014 16:56:42 +0100
parents 3ab940a0c7a0
children
line wrap: on
line source

???using System;

namespace UCIS.Pml {
	/*public class PmlMessageReceivedEventArgs : EventArgs {
		private PmlElement _message;
		public PmlMessageReceivedEventArgs(PmlElement message) {
			_message = message;
		}
		public PmlElement Message { get { return _message; } }
	}*/
	public interface IPmlChannel : IDisposable {
		//event EventHandler MessageReceived;
		//event EventHandler Closed;
		bool IsOpen { get; }
		void WriteMessage(PmlElement message);
		void Close();

		PmlElement ReadMessage();
		IAsyncResult BeginReadMessage(AsyncCallback callback, object state);
		PmlElement EndReadMessage(IAsyncResult asyncResult);
	}
}