Method ResetState
ResetState(bool)
Resets the state of this instance.
public void ResetState(bool ignoreDisposed = false)
Parameters
ignoreDisposedboolIf true, ignores disposed state checks during reset.
Remarks
Encapsulates all setting of initial state for Application; having this in a function like this ensures we don't make mistakes in guaranteeing that the state of this singleton is deterministic when Init(string?) starts running and after Shutdown() returns.
IMPORTANT: Ensure all property/fields are reset here. See Init_ResetState_Resets_Properties unit test.