public TwitterApplication(ITwitterNavigator navigator, object currentNavigationContext = null, TaskScheduler uiTaskScheduler = null)
            : base(currentNavigationContext, 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;

            // TODO: Create instances for all services that have a cross-platform implementation
        }
        public TwitterApplication(ITwitterNavigator 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;

            // TODO: Create instances for all services that have a cross-platform implementation
        }
Пример #3
0
 public static TwitterApplication EnsureTwitterApplication(ITwitterNavigator navigator)
 {
     return(TwitterApplication.Instance ?? new TwitterApplication(navigator));
 }
Пример #4
0
 public static TwitterApplication EnsureTwitterApplication(ITwitterNavigator navigator)
 {
     return TwitterApplication.Instance ?? new TwitterApplication(navigator);
 }