Mercurial > hg > ucis.core
view Pml/Channels/IPmlChannel.cs @ 49:7e4dae99f919
USBLib: fix unhandled exception in WinUSB shutdown after failure to open device
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Mon, 19 Aug 2013 16:56:50 +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); } }