private void OnHostClosed(ScreenHost host) { host.Closed -= OnHostClosed; _screens.Remove(host.Key); if (!host.Persist(_persistenceService, out var e)) { OnException($"Unable to restore screen: {host.Key}", e); } host.Dispose(); }
private void OnHostClosed(ScreenHost host) { host.Closed -= OnHostClosed; _screens.Remove(host.Key); Exception e; if (!host.Persist(_persistenceService, out e)) { OnException(string.Format("Unable to restore screen: {0}", host.Key), e); } host.Dispose(); }