示例#1
0
        public SampleAppApplication(ISampleAppNavigator navigator, object currentNavigationContext = null, TaskScheduler uiTaskScheduler = null)
            : base(currentNavigationContext, uiTaskScheduler)
        {
            // TODO: Create instances for all services that have a cross-platform implementation
            // (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;
            _itemService = new SampleItemService();
        }
        public SampleAppApplication(ISampleAppNavigator navigator, TaskScheduler uiTaskScheduler = null)
            : base(uiTaskScheduler)
        {
            // TODO: Create instances for all services that have a cross-platform implementation
            // (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;
            _itemService = new SampleItemService();
        }
示例#3
0
 public static SampleAppApplication EnsureSampleAppApplication(ISampleAppNavigator navigator)
 {
     return SampleAppApplication.Instance ?? new SampleAppApplication(navigator);
 }
示例#4
0
 public static SampleAppApplication EnsureSampleAppApplication(ISampleAppNavigator navigator)
 {
     return(SampleAppApplication.Instance ?? new SampleAppApplication(navigator));
 }