Hello,
Welcome to Microsoft Q&A.
You could control that whether the prompt for consent exists in the code.
Referring to the linked document and the Scenario9_CustomPairDevice in the official sample, you could use DevicePairingKinds
to control the pairing process. Therefore, no worry about the cases need prompt for consent, you could control it.
And, the custom pairing is always a system-level operation, a system dialog(if needed) will always be shown to the user without the need to create your own dialog. So, no worry about that the console project without the UI thread.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.