public AboutPage(IMainThread mainThread, AboutViewModel aboutViewModel, IAnalyticsService analyticsService, DeepLinkingService deepLinkingService) : base(aboutViewModel, analyticsService, mainThread) { _deepLinkingService = deepLinkingService; Title = AboutPageConstants.About; Content = new ScrollView { Content = new StackLayout { Children = { new CollectionView { SelectionMode = SelectionMode.Single, ItemTemplate = new ContributorDataTemplate(), ItemsSource = ViewModel.GitTrendsContributors, ItemsLayout = new GridItemsLayout(IsSmallScreen ? 4: 5, ItemsLayoutOrientation.Vertical) }.Invoke(collectionView => collectionView.SelectionChanged += HandleContributorSelectionChanged) } } }; }
public RPlotDeviceVisualComponent(IRPlotManager plotManager , int instanceId , IVisualComponentContainer <IRPlotDeviceVisualComponent> container , IServiceContainer services) { Check.ArgumentNull(nameof(plotManager), plotManager); Check.ArgumentNull(nameof(plotManager), plotManager); _mainThread = services.MainThread(); _viewModel = new RPlotDeviceViewModel(plotManager, _mainThread, instanceId); var control = new RPlotDeviceControl { DataContext = _viewModel, }; _disposableBag = DisposableBag.Create <RPlotDeviceVisualComponent>() .Add(() => control.ContextMenuRequested -= Control_ContextMenuRequested) .Add(() => _viewModel.DeviceNameChanged -= ViewModel_DeviceNameChanged) .Add(() => _viewModel.LocatorModeChanged -= ViewModel_LocatorModeChanged) .Add(() => _viewModel.PlotChanged -= ViewModel_PlotChanged) .Add(() => plotManager.ActiveDeviceChanged -= PlotManager_ActiveDeviceChanged); control.ContextMenuRequested += Control_ContextMenuRequested; _viewModel.DeviceNameChanged += ViewModel_DeviceNameChanged; _viewModel.LocatorModeChanged += ViewModel_LocatorModeChanged; _viewModel.PlotChanged += ViewModel_PlotChanged; plotManager.ActiveDeviceChanged += PlotManager_ActiveDeviceChanged; Control = control; Container = container; }
public GitTrendsOnboardingPage(IDeviceInfo deviceInfo, IMainThread mainThread, IAnalyticsService analyticsService, MediaElementService mediaElementService) : base(OnboardingConstants.SkipText, deviceInfo, Color.FromHex(BaseTheme.LightTealColorHex), mainThread, 0, analyticsService, mediaElementService) { }
public RemoteCredentialsDecorator(Uri brokerUri, ISecurityService securityService, IMainThread mainThread) { _securityService = securityService; _mainThread = mainThread; _authority = brokerUri.ToCredentialAuthority(); _lock = new AsyncReaderWriterLock(); _credentialsAreValid = true; }
public ReferringSitesViewModel(IMainThread mainThread, ReviewService reviewService, FavIconService favIconService, IVersionTracking versionTracking, IAnalyticsService analyticsService, GitHubUserService gitHubUserService, GitHubApiV3Service gitHubApiV3Service, DeepLinkingService deepLinkingService, ReferringSitesDatabase referringSitesDatabase, GitHubAuthenticationService gitHubAuthenticationService) : base(analyticsService, mainThread) { ReviewService.ReviewRequested += HandleReviewRequested; ReviewService.ReviewCompleted += HandleReviewCompleted; _reviewService = reviewService; _favIconService = favIconService; _versionTracking = versionTracking; _gitHubUserService = gitHubUserService; _gitHubApiV3Service = gitHubApiV3Service; _deepLinkingService = deepLinkingService; _referringSitesDatabase = referringSitesDatabase; _gitHubAuthenticationService = gitHubAuthenticationService; RefreshState = RefreshState.Uninitialized; RefreshCommand = new AsyncCommand <(string Owner, string Repository, string RepositoryUrl, CancellationToken Token)>(tuple => ExecuteRefreshCommand(tuple.Owner, tuple.Repository, tuple.RepositoryUrl, tuple.Token)); NoButtonCommand = new Command(() => HandleReviewRequestButtonTapped(ReviewAction.NoButtonTapped)); YesButtonCommand = new Command(() => HandleReviewRequestButtonTapped(ReviewAction.YesButtonTapped)); UpdateStoreRatingRequestView(); }
public StatusBar(Lazy <IDocumentManager> documentManager, TasksViewModel tasksViewModel, IEventAggregator eventAggregator, IMainThread mainThread, IPersonalGuidRangeService guidRangeService, Lazy <IClipboardService> clipboardService, Lazy <IMessageBoxService> messageBoxService) { this.tasksViewModel = tasksViewModel; this.mainThread = mainThread; this.guidRangeService = guidRangeService; this.clipboardService = clipboardService; this.messageBoxService = messageBoxService; AutoDispose(eventAggregator.GetEvent <AllModulesLoaded>().Subscribe(() => { var problemsViewModel = documentManager.Value.GetTool <ProblemsViewModel>(); Link(problemsViewModel, t => t.TotalProblems, () => TotalProblems); }, true)); OpenProblemTool = new DelegateCommand(() => documentManager.Value.OpenTool <ProblemsViewModel>()); CopyNextCreatureGuidCommand = GenerateGuidCommand(GuidType.Creature); CopyNextGameobjectGuidCommand = GenerateGuidCommand(GuidType.GameObject); CopyCreatureGuidRangeCommand = GenerateGuidRangeCommand(GuidType.Creature, () => creatureGuidCount); CopyGameobjectGuidRangeCommand = GenerateGuidRangeCommand(GuidType.GameObject, () => gameobjectGuidCount); On(() => CreatureGuidCount, _ => CopyCreatureGuidRangeCommand.RaiseCanExecuteChanged()); On(() => GameobjectGuidCount, _ => CopyGameobjectGuidRangeCommand.RaiseCanExecuteChanged()); }
public static void Assert(this IMainThread mainThread, [CallerMemberName] string memberName = "", [CallerFilePath] string sourceFilePath = "", [CallerLineNumber] int sourceLineNumber = 0) { if (mainThread.ThreadId != Thread.CurrentThread.ManagedThreadId) { Debug.Fail(FormattableString.Invariant($"{memberName} at {sourceFilePath}:{sourceLineNumber} was incorrectly called from a background thread.")); } }
public RPlotHistoryViewModel(RPlotHistoryControl control, IRPlotManager plotManager, IMainThread mainThread) { Check.ArgumentNull(nameof(control), control); Check.ArgumentNull(nameof(plotManager), plotManager); Check.ArgumentNull(nameof(mainThread), mainThread); _control = control; _plotManager = plotManager; _mainThread = mainThread; _disposableBag = DisposableBag.Create <RPlotHistoryViewModel>() .Add(() => _plotManager.DeviceAdded -= DeviceAdded) .Add(() => _plotManager.DeviceRemoved -= DeviceRemoved); _plotManager.DeviceAdded += DeviceAdded; _plotManager.DeviceRemoved += DeviceRemoved; foreach (var group in _plotManager.GetAllPlots().GroupBy(p => p.ParentDevice)) { SubscribeDeviceEvents(group.Key); foreach (var plot in group) { Entries.Add(new RPlotHistoryEntryViewModel(_plotManager, _mainThread, plot, plot.Image)); } } }
public ChartOnboardingPage(IDeviceInfo deviceInfo, IMainThread mainThread, IAnalyticsService analyticsService, MediaElementService mediaElementService) : base(OnboardingConstants.SkipText, deviceInfo, Color.FromHex(BaseTheme.CoralColorHex), mainThread, 1, analyticsService, mediaElementService) { }
public XamarinCommunityToolkitInfoPage(IMainThread mainThread) { _mainThread = mainThread; BindingContext = _viewModel = new XamarinCommunityToolkitInfoViewModel(new PreferencesImplementation()); _viewModel.GetLatestReleaseFailed += HandleGetLatestReleaseFailed; Content = new StackLayout { Children = { new Image { Source = _xamarinCommunityToolkitUrl, HeightRequest = 250 }.Center(), new Label().Center().TextCenter() .Bind <Label, string?, string>(Label.TextProperty, nameof(XamarinCommunityToolkitInfoViewModel.LatestRelease), convert: latestRelease => $"Latest Release: {latestRelease ?? "Unknown"}"), new Button { Text = "Get Latest Version" }.Center() .Bind(Button.CommandProperty, nameof(XamarinCommunityToolkitInfoViewModel.GetLatestRelease)) } }.Center(); }
public SettingsViewModel(GitHubAuthenticationService gitHubAuthenticationService, ThemeService themeService, TrendsChartSettingsService trendsChartSettingsService, IAnalyticsService analyticsService, DeepLinkingService deepLinkingService, NotificationService notificationService, IMainThread mainThread, GitHubUserService gitHubUserService) : base(gitHubAuthenticationService, deepLinkingService, analyticsService, mainThread, gitHubUserService) { _trendsChartSettingsService = trendsChartSettingsService; _deepLinkingService = deepLinkingService; _notificationService = notificationService; _themeService = themeService; CopyrightLabelTappedCommand = new AsyncCommand(ExecuteCopyrightLabelTappedCommand); GitHubUserViewTappedCommand = new AsyncCommand(ExecuteGitHubUserViewTappedCommand, _ => IsNotAuthenticating); gitHubAuthenticationService.AuthorizeSessionCompleted += HandleAuthorizeSessionCompleted; ThemeService.PreferenceChanged += HandlePreferenceChanged; ThemePickerSelectedThemeIndex = (int)themeService.Preference; if (Application.Current is App app) { app.Resumed += HandleResumed; } initializeIsRegisterForNotificationsSwitch().SafeFireAndForget(); SetGitHubValues(); async Task initializeIsRegisterForNotificationsSwitch() => IsRegisterForNotificationsSwitchToggled = notificationService.ShouldSendNotifications && await notificationService.AreNotificationsEnabled().ConfigureAwait(false); }
public InformationButton(MobileSortingService mobileSortingService, IMainThread mainThread) { _mainThread = mainThread; RowDefinitions = Rows.Define(AbsoluteGridLength(_diameter)); ColumnDefinitions = Columns.Define(AbsoluteGridLength(_diameter)); Children.Add(new FloatingActionTextButton(mobileSortingService, FloatingActionButtonSize.Mini, FloatingActionButtonType.Statistic1).Assign(out _statistic1FloatingActionButton) .Bind <FloatingActionTextButton, IReadOnlyList <Repository>, string>(FloatingActionTextButton.TextProperty, nameof(RepositoryViewModel.VisibleRepositoryList), convert: repositories => GetLabelTextConverter(mobileSortingService, repositories, FloatingActionButtonType.Statistic1)) .Invoke(fab => fab.SetBinding(IsVisibleProperty, getIsVisibleBinding()))); Children.Add(new FloatingActionTextButton(mobileSortingService, FloatingActionButtonSize.Mini, FloatingActionButtonType.Statistic2).Assign(out _statistic2FloatingActionButton) .Bind <FloatingActionTextButton, IReadOnlyList <Repository>, string>(FloatingActionTextButton.TextProperty, nameof(RepositoryViewModel.VisibleRepositoryList), convert: repositories => GetLabelTextConverter(mobileSortingService, repositories, FloatingActionButtonType.Statistic2)) .Invoke(fab => fab.SetBinding(IsVisibleProperty, getIsVisibleBinding()))); Children.Add(new FloatingActionTextButton(mobileSortingService, FloatingActionButtonSize.Mini, FloatingActionButtonType.Statistic3).Assign(out _statistic3FloatingActionButton) .Bind <FloatingActionTextButton, IReadOnlyList <Repository>, string>(FloatingActionTextButton.TextProperty, nameof(RepositoryViewModel.VisibleRepositoryList), convert: repositories => GetLabelTextConverter(mobileSortingService, repositories, FloatingActionButtonType.Statistic3)) .Invoke(fab => fab.SetBinding(IsVisibleProperty, getIsVisibleBinding()))); Children.Add(new FloatingActionTextButton(mobileSortingService, FloatingActionButtonSize.Normal, FloatingActionButtonType.Information, new AsyncCommand(ExecuteFloatingActionButtonCommand)) { FontFamily = FontFamilyConstants.RobotoMedium, Text = "TOTAL" }.Center() .DynamicResource(FloatingActionButtonView.RippleColorProperty, nameof(BaseTheme.PageBackgroundColor)) .Invoke(fab => fab.SetBinding(IsVisibleProperty, getIsVisibleBinding())));
public VsStatusBar(IServiceContainer services) { _services = services; _mainThread = services.MainThread(); _idleTime = services.GetService <IIdleTimeService>(); _vsStatusBar = services.GetService <IVsStatusbar>(typeof(SVsStatusbar)); }
public RepositoryViewModel(RepositoryDatabase repositoryDatabase, GitHubAuthenticationService gitHubAuthenticationService, GitHubGraphQLApiService gitHubGraphQLApiService, IAnalyticsService analyticsService, SortingService sortingService, GitHubApiV3Service gitHubApiV3Service, NotificationService notificationService, IMainThread mainThread, GitHubUserService gitHubUserService) : base(analyticsService, mainThread) { _repositoryDatabase = repositoryDatabase; _gitHubAuthenticationService = gitHubAuthenticationService; _gitHubGraphQLApiService = gitHubGraphQLApiService; _sortingService = sortingService; _gitHubApiV3Service = gitHubApiV3Service; _gitHubUserService = gitHubUserService; RefreshState = RefreshState.Uninitialized; PullToRefreshCommand = new AsyncCommand(() => ExecutePullToRefreshCommand(gitHubUserService.Alias)); FilterRepositoriesCommand = new Command <string>(SetSearchBarText); SortRepositoriesCommand = new Command <SortingOption>(ExecuteSortRepositoriesCommand); notificationService.SortingOptionRequested += HandleSortingOptionRequested; gitHubAuthenticationService.LoggedOut += HandleGitHubAuthenticationServiceLoggedOut; gitHubAuthenticationService.AuthorizeSessionCompleted += HandleAuthorizeSessionCompleted; gitHubAuthenticationService.DemoUserActivated += HandleDemoUserActivated; }
public TextResultsListPage(IMainThread mainThread, SignalRService signalRService, HueBridgeSetupPage hueBridgeSetupPage, TextResultsListViewModel textResultsListViewModel, PhilipsHueBridgeSettingsService philipsHueBridgeSettingsService) : base(textResultsListViewModel) { _mainThread = mainThread; _hueBridgeSetupPage = hueBridgeSetupPage; _philipsHueBridgeSettingsService = philipsHueBridgeSettingsService; BindingContext.ErrorTriggered += HandleErrorTriggered; BindingContext.PhilipsHueBridgeConnectionFailed += HandlePhilipsHueBridgeConnectionFailed; signalRService.InitializationFailed += HandleInitializationFailed; ToolbarItems.Add(new ToolbarItem { Text = "Setup" } .Invoke(setupToolbarItem => setupToolbarItem.Clicked += HandleSetupPageToolbarItemClicked)); Title = PageTitles.TextResultsPage; this.SetBinding(BackgroundColorProperty, nameof(BindingContext.BackgroundColor)); Content = new RefreshView { RefreshColor = Device.RuntimePlatform is Device.iOS ? ColorConstants.BarTextColor : ColorConstants.BarBackgroundColor, Content = new CollectionView { ItemTemplate = new TextMoodDataTemplateSelector(), BackgroundColor = Color.Transparent }.Bind(CollectionView.ItemsSourceProperty, nameof(BindingContext.TextList)) }.Bind(RefreshView.IsRefreshingProperty, nameof(BindingContext.IsRefreshing)) .Bind(RefreshView.CommandProperty, nameof(BindingContext.PullToRefreshCommand)); }
public SplashScreenPage(IMainThread mainThread, FirstRunService firstRunService, IAnalyticsService analyticsService, SplashScreenViewModel splashScreenViewModel) : base(splashScreenViewModel, analyticsService, mainThread) { //Remove BaseContentPageBackground RemoveDynamicResource(BackgroundColorProperty); this.DynamicResource(BackgroundColorProperty, nameof(BaseTheme.GitTrendsImageBackgroundColor)); _firstRunService = firstRunService; SplashScreenViewModel.InitializationCompleted += HandleInitializationCompleted; _statusMessageEnumerator.MoveNext(); Content = new Grid { RowDefinitions = Rows.Define( (Row.Image, Star), (Row.Text, Auto), (Row.BottomPadding, AbsoluteGridLength(50))), Children = { new LoadingLabel().Center().Assign(out _loadingLabel) .Row(Row.Text), new GitTrendsImage().Center().Assign(out _gitTrendsImage) .RowSpan(All <Row>()), } }; }
public OrganizationsCarouselOverlay(IMainThread mainThread, IAnalyticsService analyticsService, MediaElementService mediaElementService) { _mainThread = mainThread; _analyticsService = analyticsService; RowDefinitions = Rows.Define( (Row.CloseButton, Star), (Row.CarouselFrame, Stars(8)), (Row.BottomPadding, Star)); ColumnDefinitions = Columns.Define( (Column.Left, Star), (Column.Center, Stars(8)), (Column.Right, Star)); Children.Add(new BackgroundOverlay() .RowSpan(All <Row>()).ColumnSpan(All <Column>())); Children.Add(new CloseButton(() => Dismiss(true), analyticsService) .Row(Row.CloseButton).Column(Column.Right)); Children.Add(new OrganizationsCarouselFrame(analyticsService, mediaElementService) .Row(Row.CarouselFrame).Column(Column.Center)); Dismiss(false).SafeFireAndForget(ex => analyticsService.Report(ex)); }
public OnboardingCarouselPage(IMainThread mainThread, IAnalyticsService analyticsService, OnboardingViewModel onboardingViewModel, ChartOnboardingPage chartOnboardingPage, GitTrendsOnboardingPage welcomeOnboardingPage, NotificationsOnboardingPage notificationsOnboardingPage, ConnectToGitHubOnboardingPage connectToGitHubOnboardingPage) { On <iOS>().SetModalPresentationStyle(UIModalPresentationStyle.OverFullScreen); ChildAdded += HandleChildAdded; ChildRemoved += HandleChildRemoved; BindingContext = onboardingViewModel; _analyticsService = analyticsService; _mainThread = mainThread; OnboardingViewModel.SkipButtonTapped += HandleSkipButtonTapped; GitHubAuthenticationService.DemoUserActivated += HandleDemoUserActivated; Children.Add(welcomeOnboardingPage); Children.Add(chartOnboardingPage); Children.Add(notificationsOnboardingPage); Children.Add(connectToGitHubOnboardingPage); }
public TrendsViewModel(IMainThread mainThread, IAnalyticsService analyticsService, GitHubApiV3Service gitHubApiV3Service, GitHubApiStatusService gitHubApiStatusService, GitHubGraphQLApiService gitHubGraphQLApiService, TrendsChartSettingsService trendsChartSettingsService) : base(analyticsService, mainThread) { _gitHubApiV3Service = gitHubApiV3Service; _gitHubApiStatusService = gitHubApiStatusService; _gitHubGraphQLApiService = gitHubGraphQLApiService; IsViewsSeriesVisible = trendsChartSettingsService.ShouldShowViewsByDefault; IsUniqueViewsSeriesVisible = trendsChartSettingsService.ShouldShowUniqueViewsByDefault; IsClonesSeriesVisible = trendsChartSettingsService.ShouldShowClonesByDefault; IsUniqueClonesSeriesVisible = trendsChartSettingsService.ShouldShowUniqueClonesByDefault; ViewsCardTappedCommand = new Command(() => IsViewsSeriesVisible = !IsViewsSeriesVisible); UniqueViewsCardTappedCommand = new Command(() => IsUniqueViewsSeriesVisible = !IsUniqueViewsSeriesVisible); ClonesCardTappedCommand = new Command(() => IsClonesSeriesVisible = !IsClonesSeriesVisible); UniqueClonesCardTappedCommand = new Command(() => IsUniqueClonesSeriesVisible = !IsUniqueClonesSeriesVisible); RefreshState = RefreshState.Uninitialized; FetchDataCommand = new AsyncCommand <(Repository Repository, CancellationToken CancellationToken)>(tuple => ExecuteFetchDataCommand(tuple.Repository, tuple.CancellationToken)); }
public ConnectToGitHubOnboardingPage(GitHubAuthenticationService gitHubAuthenticationService, IAnalyticsService analyticsService, IMainThread mainthread) : base(analyticsService, mainthread, Color.FromHex(BaseTheme.CoralColorHex), OnboardingConstants.TryDemoText, 3) { gitHubAuthenticationService.AuthorizeSessionCompleted += HandleAuthorizeSessionCompleted; }
public ConnectToGitHubOnboardingPage(IDeviceInfo deviceInfo, IMainThread mainthread, IAnalyticsService analyticsService, MediaElementService mediaElementService) : base(OnboardingConstants.TryDemoText, deviceInfo, Color.FromHex(BaseTheme.CoralColorHex), mainthread, 3, analyticsService, mediaElementService) { GitHubAuthenticationService.AuthorizeSessionCompleted += HandleAuthorizeSessionCompleted; }
public RemoteCredentialsDecorator(string credentialAuthority, string workspaceName, ISecurityService securityService, IMainThread mainThread) { _securityService = securityService; _mainThread = mainThread; _authority = credentialAuthority; _lock = new AsyncReaderWriterLock(); _workspaceName = workspaceName; }
/// <summary> /// Executed cancellable action on UI thread and return result. /// </summary> /// <param name="mainThread"></param> /// <param name="action"></param> /// <param name="cancellationToken"></param> public static async Task <T> SendAsync <T>(this IMainThread mainThread, Func <T> action, IHostUIService ui, CancellationToken cancellationToken = default) { try { await mainThread.SwitchToAsync(cancellationToken); return(action()); } catch (OperationCanceledException) { return(default);
public ContactDetailViewModel(ApiService apiService, ContactDatabase contactDatabase, IMainThread mainThread, AppCenterService appCenterService) : base(appCenterService) { _apiService = apiService; _mainThread = mainThread; _contactDatabase = contactDatabase; SaveButtonTappedCommand = new AsyncCommand <bool>(ExecuteSaveButtonTappedCommand, _ => !IsSaving); }
public GitHubGraphQLApiService(IMainThread mainThread, IAnalyticsService analyticsService, IGitHubGraphQLApi gitHubGraphQLApi, GitHubUserService gitHubUserService) : base(analyticsService, mainThread) { _githubApiClient = gitHubGraphQLApi; _gitHubUserService = gitHubUserService; }
public BaseViewModel() { DialogService = LocatorService.Instance.Resolve <IDialogService>(); NavigationService = LocatorService.Instance.Resolve <INavigationService>(); ConnectivityService = LocatorService.Instance.Resolve <IConnectivity>(); MainThreadService = LocatorService.Instance.Resolve <IMainThread>(); LoggerService = LocatorService.Instance.Resolve <ILoggerService>(); }
public GitHubApiV3Service(IMainThread mainThread, IGitHubApiV3 gitHubApiV3, IAnalyticsService analyticsService, GitHubUserService gitHubUserService) : base(analyticsService, mainThread) { _githubApiClient = gitHubApiV3; _gitHubUserService = gitHubUserService; }
public SplashScreenViewModel(SyncfusionService syncfusionService, MediaElementService mediaElementService, IAnalyticsService analyticsService, NotificationService notificationService, IMainThread mainThread) : base(analyticsService, mainThread) { InitializeAppCommand = new AsyncCommand(() => ExecuteInitializeAppCommand(syncfusionService, mediaElementService, notificationService)); }
public DeepLinkingService(IMainThread mainThread, IBrowser browser, IEmail email, IAppInfo appInfo, ILauncher launcher) { _appInfo = appInfo; _email = email; _browser = browser; _mainThread = mainThread; _launcher = launcher; }
public WelcomeViewModel(GitHubAuthenticationService gitHubAuthenticationService, DeepLinkingService deepLinkingService, IAnalyticsService analyticsService, IMainThread mainThread, GitHubUserService gitHubUserService) : base(gitHubAuthenticationService, deepLinkingService, analyticsService, mainThread, gitHubUserService) { }
public BaseCarouselPage(T viewModel, IMainThread mainThread, IAnalyticsService analyticsService) { MainThread = mainThread; BindingContext = viewModel; AnalyticsService = analyticsService; ChildAdded += HandleChildAdded; ChildRemoved += HandleChildRemoved; }
public CoreServices(IApplicationConstants appConstants , ITelemetryService telemetry , ITaskService tasks , IMainThread mainThread , ISecurityService security) { Telemetry = telemetry; Registry = new RegistryImpl(); Security = security; LoggingServices = new LoggingServices(new LoggingPermissions(appConstants, telemetry, Registry), appConstants); Tasks = tasks; ProcessServices = new ProcessServices(); FileSystem = new FileSystem(); MainThread = mainThread; Log = LoggingServices.GetOrCreateLog(appConstants.ApplicationName); }
public CoreServices(IApplicationConstants appConstants , ITelemetryService telemetry , ILoggingPermissions permissions , ISecurityService security , ITaskService tasks , IMainThread mainThread , IActionLog log , IFileSystem fs , IRegistry registry , IProcessServices ps) { LoggingServices = new LoggingServices(permissions, appConstants); Log = log; Telemetry = telemetry; Security = security; Tasks = tasks; ProcessServices = ps; Registry = registry; FileSystem = fs; MainThread = mainThread; }
public REnvironmentProvider(IRSession session, IMainThread mainThread) { _mainThread = mainThread; _rSession = session; _rSession.Mutated += RSession_Mutated; }
public MainThreadAwaitableTest() { _mainThread = new TestMainThread(UIThreadHelper.Instance); }
public MainThreadAwaiter(IMainThread mainThread, CancellationToken cancellationToken) { _mainThread = mainThread; _cancellationToken = cancellationToken; }
public MainThreadAwaitable(IMainThread mainThread, CancellationToken cancellationToken = default(CancellationToken)) { _mainThread = mainThread; _cancellationToken = cancellationToken; }
public InformationService() { InitializeComponent(); infoThread = new Information(); }
public InformationFeedService() { InitializeComponent(); feedNewsThread = new FeedHoseInformation(); }