public IAsyncResult BeginGetServiceRecords(Guid service, AsyncCallback callback, object state) { if (_sdpQuery == null) { _sdpQuery = new BluetopiaSdpQuery(_factory); } return(_sdpQuery.BeginQuery(DeviceAddress, service, false, callback, state)); }
//---- 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)); }
//---- #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); }