Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EditConnectionViewModel" /> class.
        /// </summary>
        /// <param name="platformProvider">The platform provider.</param>
        /// <param name="logService">The log service.</param>
        /// <param name="settingsRepository">The build provider settings repository.</param>
        /// <param name="connectionSettingsFactory">The connection settings factory.</param>
        /// <param name="buildProviderStrategy">The build provider strategy.</param>
        /// <param name="trackedProjectFactory">The tracked project factory.</param>
        /// <param name="trackedProjectsFactory">The tracked projects factory.</param>
        /// <param name="currentSettings">The current settings.</param>
        public EditConnectionViewModel(
            IPlatformProvider platformProvider,
            ILogService logService,
            IConnectionSettingsRepository settingsRepository,
            IConnectionSettingsViewModelFactory <AppVeyor.ConnectionSettings, ConnectionSettingsViewModel> connectionSettingsFactory,
            IBuildProviderStrategy buildProviderStrategy,
            ITrackedProjectViewModelFactory trackedProjectFactory,
            ITrackedProjectsViewModelFactory trackedProjectsFactory,
            AppVeyor.ConnectionSettings currentSettings)
            : base(
                platformProvider,
                logService,
                settingsRepository,
                buildProviderStrategy,
                trackedProjectFactory,
                trackedProjectsFactory,
                currentSettings)
        {
            Ensure.That(connectionSettingsFactory).IsNotNull();

            var settings = connectionSettingsFactory.Create();

            settings.Name             = currentSettings.Name;
            settings.Token            = currentSettings.Token;
            settings.BuildsPerProject = currentSettings.BuildsPerProject;
            settings.IsDirty          = false;

            Settings = settings;

            TryConnect();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="AddConnectionViewModel{T1,T2}" /> class.
        /// </summary>
        /// <param name="platformProvider">The platform provider.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="logService">The log service.</param>
        /// <param name="settingsRepository">The settings repository.</param>
        /// <param name="buildProviderStrategy">The build provider strategy.</param>
        /// <param name="trackedProjectFactory">The tracked project factory.</param>
        /// <param name="trackedProjectsFactory">The tracked projects factory.</param>
        /// <param name="connectionSettingsFactory">The settings factory.</param>
        public AddConnectionViewModel(
            IPlatformProvider platformProvider,
            IEventAggregator eventAggregator,
            ILogService logService,
            IConnectionSettingsRepository settingsRepository,
            IBuildProviderStrategy buildProviderStrategy,
            ITrackedProjectViewModelFactory trackedProjectFactory,
            ITrackedProjectsViewModelFactory trackedProjectsFactory,
            IConnectionSettingsViewModelFactory <T1, T2> connectionSettingsFactory)
            : base(platformProvider)
        {
            Ensure.That(eventAggregator).IsNotNull();
            Ensure.That(logService).IsNotNull();
            Ensure.That(settingsRepository).IsNotNull();
            Ensure.That(buildProviderStrategy).IsNotNull();
            Ensure.That(trackedProjectFactory).IsNotNull();
            Ensure.That(trackedProjectsFactory).IsNotNull();
            Ensure.That(connectionSettingsFactory).IsNotNull();

            _eventAggregator        = eventAggregator;
            _logService             = logService;
            _settingsRepository     = settingsRepository;
            _buildProviderStrategy  = buildProviderStrategy;
            _trackedProjectFactory  = trackedProjectFactory;
            _trackedProjectsFactory = trackedProjectsFactory;

            _connectionTask = new NotifyTask();

            Settings = connectionSettingsFactory.Create();
            Settings.BuildsPerProject = 5;
            DisplayName = Properties.Resources.AddConnection_View;
        }
Beispiel #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EditConnectionViewModel" /> class.
        /// </summary>
        /// <param name="platformProvider">The platform provider.</param>
        /// <param name="logService">The log service.</param>
        /// <param name="settingsRepository">The build provider settings repository.</param>
        /// <param name="connectionSettingsFactory">The connection settings factory.</param>
        /// <param name="buildProviderStrategy">The build provider strategy.</param>
        /// <param name="trackedProjectFactory">The tracked project factory.</param>
        /// <param name="trackedProjectsFactory">The tracked projects factory.</param>
        /// <param name="currentSettings">The current settings.</param>
        public EditConnectionViewModel(
            IPlatformProvider platformProvider,
            ILogService logService,
            IConnectionSettingsRepository settingsRepository,
            IConnectionSettingsViewModelFactory <TeamCity.ConnectionSettings, ConnectionSettingsViewModel> connectionSettingsFactory,
            IBuildProviderStrategy buildProviderStrategy,
            ITrackedProjectViewModelFactory trackedProjectFactory,
            ITrackedProjectsViewModelFactory trackedProjectsFactory,
            TeamCity.ConnectionSettings currentSettings)
            : base(
                platformProvider,
                logService,
                settingsRepository,
                buildProviderStrategy,
                trackedProjectFactory,
                trackedProjectsFactory,
                currentSettings)
        {
            Ensure.That(connectionSettingsFactory).IsNotNull();

            var settings = connectionSettingsFactory.Create();

            settings.Name = currentSettings.Name;
            settings.Url  = currentSettings.Url;
            settings.AuthenticationType = currentSettings.AuthenticationType;
            settings.Username           = currentSettings.Username;
            settings.Password           = currentSettings.Password;
            settings.BuildsPerProject   = currentSettings.BuildsPerProject;
            settings.IsDirty            = false;

            Settings = settings;

            TryConnect();
        }
		internal CrossPlatformWizard(
			IPlatformProvider platformProvider,
			ISolutionExplorer solutionExplorer)
		{
			this.platformProvider = platformProvider;
			this.solutionExplorer = solutionExplorer;
		}
        /// <summary>
        /// Initializes a new instance of the <see cref="EditConnectionViewModel{T}" /> class.
        /// </summary>
        /// <param name="platformProvider">The platform provider.</param>
        /// <param name="logService">The log service.</param>
        /// <param name="settingsRepository">The settings repository.</param>
        /// <param name="buildProviderStrategy">The build provider strategy.</param>
        /// <param name="trackedProjectFactory">The tracked project factory.</param>
        /// <param name="trackedProjectsFactory">The tracked projects factory.</param>
        /// <param name="currentSettings">The current settings.</param>
        protected EditConnectionViewModel(
            IPlatformProvider platformProvider,
            ILogService logService,
            IConnectionSettingsRepository settingsRepository,
            IBuildProviderStrategy buildProviderStrategy,
            ITrackedProjectViewModelFactory trackedProjectFactory,
            ITrackedProjectsViewModelFactory trackedProjectsFactory,
            T currentSettings)
            : base(platformProvider)
        {
            Ensure.That(logService).IsNotNull();
            Ensure.That(settingsRepository).IsNotNull();
            Ensure.That(buildProviderStrategy).IsNotNull();
            Ensure.That(trackedProjectFactory).IsNotNull();
            Ensure.That(trackedProjectsFactory).IsNotNull();
            Ensure.That(currentSettings).IsNotNull();

            _logService             = logService;
            _settingsRepository     = settingsRepository;
            _buildProviderStrategy  = buildProviderStrategy;
            _trackedProjectFactory  = trackedProjectFactory;
            _trackedProjectsFactory = trackedProjectsFactory;
            _currentSettings        = currentSettings;
            DisplayName             = Properties.Resources.EditConnection_View;
        }
        void SatifyDependencies()
        {
            if (solutionExplorer == null)
            {
                solutionExplorer = ServiceLocator.Global.GetExport <ISolutionExplorer>();
            }

            if (platformProvider == null)
            {
                platformProvider = ServiceLocator.Global.GetExport <IPlatformProvider>();
            }

            if (uiShell == null)
            {
                uiShell = ServiceLocator.Global.GetService <SVsUIShell, IVsUIShell>();
            }

            if (packageInstaller == null)
            {
                packageInstaller = ServiceLocator.Global.GetExport <IVsPackageInstaller>();
            }

            if (packageInstallerServices == null)
            {
                packageInstallerServices = ServiceLocator.Global.GetExport <IVsPackageInstallerServices>();
            }
        }
        public BundleManifestLoader(ILoader innerLoader, IPlatformProvider platformProvider, string baseUri)
        {
            _innerLoader = innerLoader;

            var platformName = platformProvider.GetPlatformName();

            _manifestUri = new Uri($"{baseUri}/{platformName}/{platformName}");
        }
Beispiel #8
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            handler = new Handler();
            client  = new GoogleApiClientBuilder(this, this, this).AddApi(WearableClass.Api).Build();

            _platformProvider = new WearPlatformProvider();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="BuildProvidersViewModel" /> class.
        /// </summary>
        /// <param name="platformProvider">The platform provider.</param>
        /// <param name="providers">The providers.</param>
        public BuildProvidersViewModel(IPlatformProvider platformProvider, IEnumerable <IBuildProviderViewModel> providers)
            : base(platformProvider)
        {
            Ensure.That(providers).IsNotNull();

            Providers   = providers;
            DisplayName = Properties.Resources.BuildProviders_View;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ConnectionsViewModel" /> class.
        /// </summary>
        /// <param name="platformProvider">The platform provider.</param>
        /// <param name="connectionsListViewModel">The connections list view model.</param>
        public ConnectionsViewModel(IPlatformProvider platformProvider, ConnectionsListViewModel connectionsListViewModel)
            : base(platformProvider)
        {
            Ensure.That(connectionsListViewModel).IsNotNull();

            ConnectionsList = connectionsListViewModel;
            DisplayName     = Properties.Resources.Connections_View;
            KeepAlive       = true; // TODO: Why do we need this?
        }
Beispiel #11
0
 public TestsService(ILoadingProgressController loadingProgressController, IConfigSerializer configSerializer, ILoggingService loggingService, IMinioWorker minioWorker, INotificationService notificationService)
 {
     this.loadingProgressController = loadingProgressController;
     this.configSerializer          = configSerializer;
     this.loggingService            = loggingService;
     this.minioWorker         = minioWorker;
     this.notificationService = notificationService;
     platformProvider         = ServiceLocator.Current.GetInstance <IPlatformProvider>();
 }
 internal MultiPlatformWizard(
     IPlatformProvider platformProvider,
     ISolutionExplorer solutionExplorer,
     IVsUIShell uiShell)
 {
     this.platformProvider = platformProvider;
     this.solutionExplorer = solutionExplorer;
     this.uiShell          = uiShell;
 }
        public AddPlatformImplementationCommand(
			ISolutionExplorer solutionExplorer,
			IPlatformProvider platformProvider,
			IDialogService dialogService)
            : base(Commands.AddPlatformImplementationCommandId)
        {
            this.solutionExplorer = solutionExplorer;
            this.platformProvider = platformProvider;
            this.dialogService = dialogService;
        }
Beispiel #14
0
        public SplashViewModel1(IServiceDispatcher serviceDispatcher, IPlatformProvider platformProvider)
        {
            HasNavigationBar = false;

            Title = "SplashViewModel1";

            this.serviceDispatcher = serviceDispatcher;
            this.platformProvider  = platformProvider;

            Task.Delay(1500).ContinueWith(t => platformProvider.ExecuteOnUIThread(() => serviceDispatcher.Dispatch <INavigationService>(ShellNames.SplashScreen, n => n.Push <SplashViewModel2>(replace: true))));
        }
 public SettingsViewModel(IConfigSerializer configSerializer)
 {
     Title             = "Settings";
     _dispatcher       = Dispatcher.CurrentDispatcher;
     _configSerializer = configSerializer;
     _platformProvider = ServiceLocator.Current.GetInstance <IPlatformProvider>();
     Config            = configSerializer.GetConfig();
     Commands          = UICommand.GenerateFromMessageButton(MessageButton.OKCancel, new DialogService(), MessageResult.OK, MessageResult.Cancel);
     Commands.Single(c => c.IsDefault).Command = new DelegateCommand(Save, AllowDialogButtons);
     Commands.Single(c => c.IsCancel).Command  = new DelegateCommand(Cancel, AllowDialogButtons);
 }
Beispiel #16
0
        public async Task <IEnumerable <Product> > GetProductsAsync(int id)
        {
            var store = StoresTable.Platforms.Where(x => x.Id == id).FirstOrDefault();

            if (store == null)
            {
                throw new KeyNotFoundException("StoreId not found in StoresTable");
            }
            _platformProvider = _platformProviderResolver(store.Name);
            return(await _platformProvider.GetProductsAsync(id));
        }
Beispiel #17
0
        public ServiceDispatcher(IPlatformProvider platformProvider)
        {
            this.platformProvider = platformProvider;

            subscribedServices = new Dictionary <Type, List <IService> >();

            services = new Dictionary <string, IEnumerable <string> >();
            serviceNameTypeMapping = new Dictionary <string, Type>();
            serviceMethodMapping   = new Dictionary <string, Dictionary <string, MethodInfo> >();

            eventRegistrations = new Dictionary <Type, List <EventRegistration> >();
        }
Beispiel #18
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RemoveConnectionViewModel" /> class.
        /// </summary>
        /// <param name="platformProvider">The platform provider.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="settingsRepository">The settings repository.</param>
        /// <param name="connectionViewModel">The connection view model.</param>
        public RemoveConnectionViewModel(IPlatformProvider platformProvider, IEventAggregator eventAggregator, IConnectionSettingsRepository settingsRepository, IConnectionViewModel connectionViewModel)
            : base(platformProvider)
        {
            Ensure.That(eventAggregator).IsNotNull();
            Ensure.That(settingsRepository).IsNotNull();
            Ensure.That(connectionViewModel).IsNotNull();

            _eventAggregator     = eventAggregator;
            _settingsRepository  = settingsRepository;
            _connectionViewModel = connectionViewModel;
            DisplayName          = Properties.Resources.RemoveConnection_View;
        }
Beispiel #19
0
        private void InitialiseCulture()
        {
            IPlatformProvider platformProvider = container.GetInstance <IPlatformProvider>();

            if (platformProvider.PlatformInfo.PlatformType != PlatformTypeEnum.AppleIOS ||
                platformProvider.PlatformInfo.PlatformType != PlatformTypeEnum.Android)
            {
                return;
            }

            ILocalisationService localise = container.GetInstance <ILocalisationService>();

            localise.SetCulture(localise.GetCurrentCultureInfo());
        }
Beispiel #20
0
        public ViewModel1(IServiceDispatcher serviceDispatcher, IPlatformProvider platformProvider)
        {
            Title = "ViewModel1";

            this.serviceDispatcher = serviceDispatcher;
            this.platformProvider  = platformProvider;

            IsLoading   = true;
            LoadingText = "Loading for 3 seconds...";
            Task.Delay(3000).ContinueWith(t => IsLoading = false);

            OpenViewModel2Command = new Command(OpenViewModel2);
            ShowMessageCommand    = new Command(ShowMessage);
        }
 public AddPlatformImplementationCommand(
     ISolutionExplorer solutionExplorer,
     IPlatformProvider platformProvider,
     IDialogService dialogService,
     IVsPackageInstaller packageInstaller,
     IVsPackageInstallerServices packageInstallerServices)
     : base(Commands.AddPlatformImplementationCommandId)
 {
     this.solutionExplorer         = solutionExplorer;
     this.platformProvider         = platformProvider;
     this.dialogService            = dialogService;
     this.packageInstaller         = packageInstaller;
     this.packageInstallerServices = packageInstallerServices;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ConnectionViewModel{T}" /> class.
        /// </summary>
        /// <param name="application">The application.</param>
        /// <param name="platformProvider">The platform provider.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="buildTracker">The build tracker.</param>
        /// <param name="projectFactory">The project factory.</param>
        /// <param name="removeConnectionFactory">The remove connection factory.</param>
        /// <param name="editConnectionFactory">The edit connection factory.</param>
        /// <param name="settings">The settings.</param>
        public ConnectionViewModel(
            IApp application,
            IPlatformProvider platformProvider,
            IEventAggregator eventAggregator,
            IBuildTracker buildTracker,
            IProjectViewModelFactory projectFactory,
            IRemoveConnectionViewModelFactory removeConnectionFactory,
            IEditConnectionViewModelFactory <T> editConnectionFactory,
            T settings)
            : base(platformProvider)
        {
            Ensure.That(application).IsNotNull();
            Ensure.That(eventAggregator).IsNotNull();
            Ensure.That(buildTracker).IsNotNull();
            Ensure.That(projectFactory).IsNotNull();
            Ensure.That(removeConnectionFactory).IsNotNull();
            Ensure.That(editConnectionFactory).IsNotNull();
            Ensure.That(settings).IsNotNull();

            _application             = application;
            _eventAggregator         = eventAggregator;
            _projectFactory          = projectFactory;
            _removeConnectionFactory = removeConnectionFactory;
            _editConnectionFactory   = editConnectionFactory;
            Settings    = settings;
            _isBusy     = true;
            _isErrored  = false;
            DisplayName = Properties.Resources.Connection_View;
            KeepAlive   = true;

            WeakEventManager <IBuildTracker, BuildTrackerConnectionErrorEventArgs> .AddHandler(buildTracker, nameof(buildTracker.ConnectionError), BuildTrackerConnectionError);

            WeakEventManager <IBuildTracker, BuildTrackerConnectionProgressEventArgs> .AddHandler(buildTracker, nameof(buildTracker.ConnectionProgressChanged), BuildTrackerConnectionProgressChanged);

            _projects = new BindableCollection <IProjectViewModel>();

            _filteredProjects = new CollectionViewSource
            {
                Source = _projects
            };

            _filteredProjects.Filter += (sender, e) =>
            {
                var project = (IProjectViewModel)e.Item;

                e.Accepted = _matches?.Contains(project) ?? true;
            };

            FilteredProjects = _filteredProjects.View;
        }
Beispiel #23
0
        public SplashViewModel2(IServiceDispatcher serviceDispatcher, IPlatformProvider platformProvider)
        {
            HasNavigationBar = false;

            Title = "SplashViewModel2";

            this.serviceDispatcher = serviceDispatcher;
            this.platformProvider  = platformProvider;

            Task.Delay(1500).ContinueWith(t => platformProvider.ExecuteOnUIThread(() =>
            {
                serviceDispatcher.Dispatch <IShellNavigationService>(n => n.Push <StackShellViewModel>(new { Name = ShellNames.Stack }));
                serviceDispatcher.Dispatch <INavigationService>(ShellNames.Stack, n => n.Push <ViewModel1>(replace: true));
            }));
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="EditSettingsViewModel" /> class.
        /// </summary>
        /// <param name="application">The application.</param>
        /// <param name="platformProvider">The platform provider.</param>
        /// <param name="appSettingsFactory">The app settings factory.</param>
        public EditSettingsViewModel(IApp application, IPlatformProvider platformProvider, IAppSettingsFactory appSettingsFactory)
            : base(platformProvider)
        {
            Ensure.That(application).IsNotNull();
            Ensure.That(appSettingsFactory).IsNotNull();

            _application = application;
            _validator   = new EditSettingsViewModelValidator();

            var appSettings = appSettingsFactory.Create();

            _appSettings = appSettings;
            _interval    = appSettings.Interval;
            _cultureName = appSettings.CultureName;
            DisplayName  = Properties.Resources.EditSettings_View;
        }
Beispiel #25
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProjectViewModel" /> class.
        /// </summary>
        /// <param name="application">The application.</param>
        /// <param name="platformProvider">The platform provider.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="buildTracker">The build tracker.</param>
        /// <param name="buildFactory">The build factory.</param>
        /// <param name="settingsId">The settings identifier.</param>
        /// <param name="projectId">The project identifier.</param>
        /// <param name="projectName">The project name.</param>
        public ProjectViewModel(
            IApp application,
            IPlatformProvider platformProvider,
            IEventAggregator eventAggregator,
            IBuildTracker buildTracker,
            IBuildViewModelFactory buildFactory,
            Guid settingsId,
            string projectId,
            string projectName)
            : base(platformProvider)
        {
            Ensure.That(application).IsNotNull();
            Ensure.That(eventAggregator).IsNotNull();
            Ensure.That(buildTracker).IsNotNull();
            Ensure.That(buildFactory).IsNotNull();
            Ensure.That(settingsId).IsNotEmpty();
            Ensure.That(projectId).IsNotNullOrWhiteSpace();

            _application     = application;
            _eventAggregator = eventAggregator;
            _buildFactory    = buildFactory;
            _settingsId      = settingsId;
            Id          = projectId;
            _name       = projectName;
            _isBusy     = true;
            _isErrored  = false;
            DisplayName = Properties.Resources.Project_View;

            WeakEventManager <IBuildTracker, BuildTrackerProjectErrorEventArgs> .AddHandler(buildTracker, nameof(buildTracker.ProjectError), BuildTrackerProjectError);

            WeakEventManager <IBuildTracker, BuildTrackerProjectProgressEventArgs> .AddHandler(buildTracker, nameof(buildTracker.ProjectProgressChanged), BuildTrackerProjectProgressChanged);

            _builds = new BindableCollection <IBuildViewModel>();

            _orderedBuilds = new CollectionViewSource
            {
                Source = _builds
            };

            OrderedBuilds = _orderedBuilds.View;
        }
Beispiel #26
0
 public MainViewModel(INotificationService notificationService,
                      ILoggingService loggingService,
                      IConfigSerializer configSerializer,
                      ILoadingProgressController loadingProgressController,
                      ITestsService testsService,
                      IGitWorker gitWorker,
                      IPlatformProvider platformProvider,
                      IActiveService isActiveService, ITestsService testService)
 {
     dispatcher = Dispatcher.CurrentDispatcher;
     this.notificationService  = notificationService;
     this.loggingService       = loggingService;
     this.configSerializer     = configSerializer;
     this.platformProvider     = platformProvider;
     this.isActiveService      = isActiveService;
     this.testService          = testService;
     this.gitWorker            = gitWorker;
     obsolescenceTracker       = new RepositoryObsolescenceTracker(this.gitWorker, () => _config.Repositories, NoticeRepositoryObsolescenceAsync);
     LoadingProgressController = loadingProgressController;
     testService = testsService;
     testService.PropertyChanged    += TestService_PropertyChanged;
     loggingService.MessageReserved += OnLoggingMessageReserved;
 }
        public RepositoryObsolescenceTracker(IGitWorker gitWorker, Func <Repository[]> getReposForCheck, Func <Task> onObsolescence)
        {
            timer = new DispatcherTimer();
            this.getReposForCheck = getReposForCheck;
            platforms             = ServiceLocator.Current.GetInstance <IPlatformProvider>();
            timer.Interval        = TimeSpan.FromMinutes(20);
            timer.Tick           += async(s, a) => {
                timer.Stop();
                foreach (var repo in this.getReposForCheck())
                {
                    try {
                        if (await gitWorker.IsOutdatedAsync(platforms.PlatformInfos.Single(p => p.Name == repo.Platform).GitRepository, repo))
                        {
                            await onObsolescence();

                            return;
                        }
                    }
                    catch {
                    }
                }
                timer.Start();
            };
        }
 public void SetUp()
 {
     _innerLoader      = Substitute.For <ILoader>();
     _platformProvider = Substitute.For <IPlatformProvider>();
     _bundle           = Substitute.For <IBundle>();
 }
Beispiel #29
0
 public ViewFactory(IPlatformProvider platformProvider, IViewResolution viewResolution)
 {
     this.platformProvider = platformProvider;
     this.viewResolution   = viewResolution;
 }
Beispiel #30
0
 public CheatImpl(IMediator mediator, IScreenOpener screenOpener, IPlatformProvider platformProvider,
     IExceptionHandler exceptionHandler, IMessageBus messageBus, IGameLockMonitor gameLockMonitor, IDialogManager dialogManager) {
     Mediator = mediator;
     ScreenOpener = screenOpener;
     PlatformProvider = platformProvider;
     MessageBus = messageBus;
     GameLockMonitor = gameLockMonitor;
     DialogManager = dialogManager;
     UiTaskHandler.SetExceptionHandler(exceptionHandler);
 }
Beispiel #31
0
 private ApplicationRuntime(IPlatformProvider platformProvider, IServiceContainer serviceContainer)
 {
     this.ServiceContainer  = serviceContainer;
     this._platformProvider = platformProvider;
     this.ApplicationSynchronizationContext = this._platformProvider.SynchronizationContext;
 }
Beispiel #32
0
 public IosSpecificDialogService(IPlatformProvider platformProvider)
 {
     deviceInfo = platformProvider.DeviceInfo;
 }
Beispiel #33
0
 public BundleCacheLoader(ILoader innerLoader, IPlatformProvider platformProvider, string baseUri)
     : base(innerLoader)
 {
     _baseUri = $"{baseUri}/{platformProvider.GetPlatformName()}/";
 }
		void SatifyDependencies()
		{
			if (solutionExplorer == null)
				solutionExplorer = ServiceLocator.Global.GetExport<ISolutionExplorer>();

			if (platformProvider == null)
				platformProvider = ServiceLocator.Global.GetExport<IPlatformProvider>();
		}