Susbscription dispose when undock the viewer parent container.
When the component is set on an Doking system like RadDocking on telerik, when the pane is undock from the main windows the log stop working, this is caused by the _Subscription disposition of the viewer.
I know that this is an expected behavior because we want to stop listen for new logs when the windows is closed, or unloaded, but the issue cause that the viewer dons't start to listen again whe the new windows set or even when the current windows loads again, and since the control dons't has any recovery strategy to start listen again, it fall in a useless state.
To solve this issue we should separete the log subscription login on two main public method:
StartListen(); This method should start listen the log by subscribing to the cache, and should be called in the current _OnLoaded even handler in order to keep the same functionality and start Listen as soon as the windows loads.
StopListen();
This method should stop the listen subscription for new logs as happen now in the _OnUnloaded event handler, and also should be called from the same hadler to keep the functionality.
Whit this 2 methods the user can start again to listen for new logs in such scenarios like the docking windows or any future scenario that require Start/Stop listen for logs.
Even the pause functionality could be promoted to use this method in order to improve performance.
I open this discussion, @dojo90 if you agree I could start a PR
I think this is a special case that I have not yet considered or does not occur with me.
I appreciate it if you want to improve the code and start a PR. 😀💪