override protected void OnNavigatedFrom(NavigationEventArgs e) { AppModel.EnableAllNotificationsAsync(false); if (ServiceBusClientLib.ServiceBusClient.IsConnectionDataSet) { ServiceBus.DeRegisterMovementModel(); } }
override protected void OnNavigatedTo(NavigationEventArgs e) { AppModel.EnableAllNotificationsAsync(true); //If we have set Azure Service bus settings, all changes in the model //will be streamed to service bus. if (ServiceBusClientLib.ServiceBusClient.IsConnectionDataSet) { ServiceBus.RegisterMovementModel(AppModel.Movement); } }