I have a question about the System.Net.Sockets.NetworkingStream class (or the networking classes in general).
They have some asynchronous BeginX methods like BeginRead and (as far as I understand) they use a "background thread" to handle the method and you have to pass a callback method which is called when the method is "done" (for example when there is incoming data ready to read).
But what I don't understand yet: On which thread is the callback method running? Is it executed on the "main thread" which called the BeginRead method or are they executed on the "background thread" which was created by the BeginX method?
I need to know this, because I want to know if these callbacks are "thread safe" or if I could run into any threading issues with these if they are executed on a "background thread"
(Im using the BeginX methods instead of the "normal" methods, because I don't want to block my application)