Current web page version

If I go to the asp.net webpage where the page loads, how long will the stream last after the browser closes? I would suggest that he would just finish on his own, but I'm not sure if he will end when the session ends, or something like that.

protected void Page_Load(object sender, EventArgs e) {
    Thread T = new Thread(new ThreadStart(longRunningMethod));
    T.Start();
}

Thank.

+1
source share
2 answers

The thread stops when the code in the thread stops, i.e. whenever longRunningMethod()completed.

, , (.. , , , " " ..).

- , , , , , , .

+3

. , , , , , , . ( 30 ) - .

, , .

, . , , , , .

+2

Source: https://habr.com/ru/post/1768241/


All Articles