Revert PluginCore use of event listening for current LogMonitor state (#64)
The order that listeners get notified isn't deterministic and as a result plugins which read the current state from PluginCore during the handling of a state change event may read a stale state resulting in unexpected results. PluginCore now reads a property directly from LogMonitor to avoid such inconsistencies.
This commit is contained in:
parent
4f4ba88878
commit
fa5c978b34
3 changed files with 9 additions and 9 deletions
|
|
@ -38,6 +38,13 @@ namespace Observatory
|
|||
|
||||
#endregion
|
||||
|
||||
#region Public properties
|
||||
public LogMonitorState CurrentState
|
||||
{
|
||||
get => currentState;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public void Start()
|
||||
|
|
|
|||
Loading…
Reference in a new issue