Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SunboX/Prism.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunboX <andre.fiedler@me.com>2017-07-18 23:57:17 +0300
committerSunboX <andre.fiedler@me.com>2017-07-18 23:57:17 +0300
commit28ae6d47e4fcfba1e0aadc970f03b734211ac856 (patch)
treead3801f1a1eefd20d3da275be800fa461ffeb955
parent456e78a317c38381c5ea9571ae183fcff165ba21 (diff)
-rw-r--r--Source/Windows10/Prism.Windows/PrismApplication.cs52
1 files changed, 26 insertions, 26 deletions
diff --git a/Source/Windows10/Prism.Windows/PrismApplication.cs b/Source/Windows10/Prism.Windows/PrismApplication.cs
index 644c5ae..efabcde 100644
--- a/Source/Windows10/Prism.Windows/PrismApplication.cs
+++ b/Source/Windows10/Prism.Windows/PrismApplication.cs
@@ -520,32 +520,32 @@ namespace Prism.Windows
/// <param name="sender">The source of the suspend request.</param>
/// <param name="e">Details about the suspend request.</param>
private async void OnSuspending(object sender, SuspendingEventArgs e)
- {
- IsSuspending = true;
- try
- {
- var deferral = e.SuspendingOperation.GetDeferral();
-
- //Custom calls before suspending.
- await OnSuspendingApplicationAsync();
-
- //Bootstrap inform navigation service that app is suspending.
- NavigationService?.Suspending();
-
- // Save application state
- var saveAsync = SessionStateService?.SaveAsync();
- if (saveAsync != null)
- {
- await saveAsync;
- }
-
- deferral.Complete();
- }
- finally
- {
- IsSuspending = false;
- }
- }
+ {
+ IsSuspending = true;
+ try
+ {
+ var deferral = e.SuspendingOperation.GetDeferral();
+
+ //Custom calls before suspending.
+ await OnSuspendingApplicationAsync();
+
+ //Bootstrap inform navigation service that app is suspending.
+ NavigationService?.Suspending();
+
+ // Save application state
+ var saveAsync = SessionStateService?.SaveAsync();
+ if (saveAsync != null)
+ {
+ await saveAsync;
+ }
+
+ deferral.Complete();
+ }
+ finally
+ {
+ IsSuspending = false;
+ }
+ }
/// <summary>
/// Invoked when the application resumes from a suspended state.