示例#1
0
 public IAsyncResult BeginGetServiceRecords(Guid service, AsyncCallback callback, object state)
 {
     if (_sdpQuery == null)
     {
         _sdpQuery = new BluetopiaSdpQuery(_factory);
     }
     return(_sdpQuery.BeginQuery(DeviceAddress, service, false, callback, state));
 }
示例#2
0
 //----
 public override IAsyncResult BeginServiceDiscovery(BluetoothAddress address, Guid serviceGuid,
                                                    AsyncCallback asyncCallback, object state)
 {
     if (_sdpQuery == null)
     {
         _sdpQuery = new BluetopiaSdpQuery(_factory);
     }
     return(_sdpQuery.BeginQuery(address, serviceGuid, true, asyncCallback, state));
 }
示例#3
0
        //----
#if DEBUG
        internal BluetopiaSdpQuery Testing_GetSdpQuery()
        {
            // The test needs to access this *before* we call BeginGSR, so create it here...
            if (_sdpQuery == null)
            {
                _sdpQuery = new BluetopiaSdpQuery(_factory);
            }
            return(_sdpQuery);
        }