Пример #1
0
 public virtual IAsyncResult BeginReadEvent(AsyncCallback callback, object state)
 {
     return(AsyncResult <BleEvent> .BeginOperation(delegate()
     {
         return ReadEvent();
     }, callback, state));
 }
Пример #2
0
 public virtual IAsyncResult BeginWriteCharacteristicWithoutResponse(BleCharacteristic characteristic, byte[] value, int offset, int count, BleRequestFlags requestFlags,
                                                                     AsyncCallback callback, object state)
 {
     return(AsyncResult <int> .BeginOperation(delegate()
     {
         WriteCharacteristicWithoutResponse(characteristic, value, offset, count, requestFlags); return 0;
     }, callback, state));
 }