Auxl
Auxl
CC#
Created by Auxl on 8/8/2023 in #help
❔ HttpListener for single use request
Haven't found any useful answers online. I've got a console app where I want to open the user's main browser to an oauth login page. The callback leads back to the program at localhost. So I believe I need to run an httplistener to capture this callback. However this is the only use I would have in the program's lifetime for the httplistener. The rest of the authorization flow can be maintained through an httpclient. Is it viable or acceptable to spin up and dispose an httplistener like this? Maybe there's a better option for temporary listeners with asp? Or am I overthinking this and there's another solution?
11 replies
CC#
Created by Auxl on 2/12/2023 in #help
❔ Modern web api frameworks in dotnet
Is aspnet the only option for building web apis in modern dotnet? I've tried doing a bunch of searches but asp drowns out all of the results. I remembered https://github.com/NancyFx/Nancy but it looks like it was dropped a couple years ago. Not that I mind asp but I'm curious about what other options might exist out there.
5 replies