public SmartLearningApplication(ISharedSmartLearningNavigator navigator, TaskScheduler uiTaskScheduler = null) : base(uiTaskScheduler) { // Services that have a platform-specific implementation, such as the navigator, // are instantiated in a platform-specific project and passed to this application // as a cross-platform interface. _navigator = navigator; // subscribe to app wide unhandled exceptions so that we can log them. AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException; }
public static SmartLearningApplication EnsureSmartLearningApplication(ISharedSmartLearningNavigator navigator) { return(SmartLearningApplication.Instance ?? new SmartLearningApplication(navigator)); }