I need to terminate all threads associated with the user who started it and i want to do it after user Log out. I have a function in every Controller that names thread with request path and user name:
Thread.CurrentThread.Name = $"{HttpContext.Current.Request.Path} {System.Web.HttpContext.Current.User.Identity.Name}";
How can I find them all? I already tried with Process.GetCurrentProcess().Threads but it returns ProcessThread objects that does not contains names - i need Thread objects.
Aucun commentaire:
Enregistrer un commentaire