I would like to be able to use Tor programmatically in a c# application, for example I could have a function:
GetViaTor(someUrl);
What I currently do is I run the Tor process,wait a sufficient amount of time for it to connect, connect to it as a proxy and then run through it. I don't like that, it feels like a hack, opens a new process, I have to wait an arbitrary amount of time, and I have no feedback from the process ( i.e. IsTorGood())
I know that c# doesn't support socks, and if there was a solution for c/c++ that I could expose as unmanaged code, that too would help. I also know that Tor was written in c, so this seems all too possible, but I just don't understand how to do what I want from the source code.
P.S.
I know this may seem like a duplicate of some other questions, but I looked at them and couldn't understand what to do with the answers given ( some applied to java, some said to use it as a proxy (which I took to mean manually))