Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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);
        }