Disposing Objects

Sep 8, 2016 at 12:38 PM
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.
Sep 11, 2016 at 11: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
Sep 11, 2016 at 11: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 5:19 AM
Hi and thanks for the explanation..