You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
danielmeza
changed the title
Susbscription dispe when undock the viewer parent container.
Susbscription dispose when undock the viewer parent container.
Sep 7, 2022
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
The text was updated successfully, but these errors were encountered: