Disposing Objects

Sep 8, 2016 at 11:38 AM
Hi i'm bit new to table dependency. Can I ask how is this automatic object disposing (after 5 minutes) works.
Is it disposing when in idle time as well. If so is there a way to stay alive until user exit from the website.

Thanks in advance.
Coordinator
Sep 11, 2016 at 10:12 AM
Hi
Automatic disposition is done when you close your application without calling .Stop() OR .Dipose() on your sqlTableDependency instance.
Automatic disposition is accomplisched thanks to a DB timer run from sqlTableDependency: its default timing is 3 minutes.
Regards
Coordinator
Sep 11, 2016 at 10:15 AM
"If so is there a way to stay alive until user exit from the website?"

OF COURSE: you should define a application scope global variable. See: https://tabledependency.codeplex.com/wikipage?title=WebApi

Regards
Sep 12, 2016 at 4:19 AM
Hi and thanks for the explanation..