view Pml/Channels/IPmlChannel.cs @ 54:ba4e2cb031e0

Added general purpose tar archive reader class
author Ivo Smits <Ivo@UCIS.nl>
date Wed, 02 Oct 2013 21:17:30 +0200
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);
	}
}