示例#1
0
 //--
 IAsyncResult IUsesBluetoothConnectorImplementsServiceLookup.BeginServiceDiscovery(
     BluetoothAddress address, Guid serviceGuid,
     AsyncCallback asyncCallback, Object state)
 {
     if (_sdpQuery == null)
     {
         _sdpQuery = new BluezSdpQuery(_fcty);
     }
     return(_sdpQuery.BeginQuery(address, serviceGuid, true, asyncCallback, state));
 }
示例#2
0
        IAsyncResult IBluetoothDeviceInfo.BeginGetServiceRecords(Guid service, AsyncCallback callback, object state)
        {
            if (_sdpQuery == null)
            {
                _sdpQuery = new BluezSdpQuery(_fcty);
            }
            var ar = _sdpQuery.BeginQuery(_addr, service, false, callback, state);

            return(ar);
        }