//todo: commands only in context and create context using ActivatorUtilities.CreateInstance public MergeGraphSyncer( IEnumerable <IContentItemGraphSyncer> itemSyncers, IGraphSyncPartGraphSyncer graphSyncPartGraphSyncer, ISyncNameProvider syncNameProvider, IMergeNodeCommand mergeNodeCommand, IReplaceRelationshipsCommand replaceRelationshipsCommand, IContentItemVersionFactory contentItemVersionFactory, IPublishedContentItemVersion publishedContentItemVersion, IPreviewContentItemVersion previewContentItemVersion, IServiceProvider serviceProvider, IGraphCluster graphCluster, IContentItemsService contentItemsService, ILogger <MergeGraphSyncer> logger) { _itemSyncers = itemSyncers.OrderByDescending(s => s.Priority); _graphSyncPartGraphSyncer = graphSyncPartGraphSyncer; _syncNameProvider = syncNameProvider; MergeNodeCommand = mergeNodeCommand; _replaceRelationshipsCommand = replaceRelationshipsCommand; _contentItemVersionFactory = contentItemVersionFactory; _publishedContentItemVersion = publishedContentItemVersion; _previewContentItemVersion = previewContentItemVersion; _serviceProvider = serviceProvider; _graphCluster = graphCluster; _contentItemsService = contentItemsService; _logger = logger; _graphMergeContext = null; _incomingPreviewContentPickerRelationships = null; }
public ValidateAndRepairGraph(IEnumerable <IContentItemGraphSyncer> itemSyncers, IContentDefinitionManager contentDefinitionManager, IContentManager contentManager, ISession session, IServiceProvider serviceProvider, ISyncNameProvider syncNameProvider, IGraphValidationHelper graphValidationHelper, IContentItemVersionFactory contentItemVersionFactory, IContentItemsService contentItemsService, ILogger <ValidateAndRepairGraph> logger) { _itemSyncers = itemSyncers.OrderByDescending(s => s.Priority); _contentDefinitionManager = contentDefinitionManager; _contentManager = contentManager; _session = session; _serviceProvider = serviceProvider; _syncNameProvider = syncNameProvider; _graphValidationHelper = graphValidationHelper; _contentItemVersionFactory = contentItemVersionFactory; _contentItemsService = contentItemsService; _logger = logger; _currentGraph = default; _graphClusterLowLevel = _serviceProvider.GetRequiredService <IGraphClusterLowLevel>(); }
public PageLocationsTaxonomyValidator( IContentItemsService contentItemsService, ITaxonomyHelper taxonomyHelper, IEnumerable <ITaxonomyTermValidator> validators) { _contentItemsService = contentItemsService; _taxonomyHelper = taxonomyHelper; _validators = validators; }
public GraphResyncer( IContentItemsService contentItemsService, IServiceProvider serviceProvider, IGraphCluster graphCluster, IContentManager contentManager) { _contentItemsService = contentItemsService; _serviceProvider = serviceProvider; _graphCluster = graphCluster; _contentManager = contentManager; }
public PageLocationTaxonomyTermHandler( ISession session, ITaxonomyHelper taxonomyHelper, ISyncOrchestrator syncOrchestrator, IContentItemsService contentItemsService, IGraphSyncNotifier notifier, IEnumerable <IContentOrchestrationHandler> contentOrchestrationHandlers) { _session = session; _taxonomyHelper = taxonomyHelper; _syncOrchestrator = syncOrchestrator; _contentItemsService = contentItemsService; _notifier = notifier; _contentOrchestrationHandlers = contentOrchestrationHandlers; }
public PageLocationModificationValidator(IContentItemsService contentItemsService, ITaxonomyHelper taxonomyHelper) { _contentItemsService = contentItemsService; _taxonomyHelper = taxonomyHelper; }
public PageLocationPartGraphSyncer(IPageLocationClonePropertyGenerator generator, IContentItemsService contentItemsService, IContentDefinitionManager contentDefinitionManager) { _generator = generator; _contentItemsService = contentItemsService; _contentDefinitionManager = contentDefinitionManager; }
public DashboardpageViewModel() { _locationService = DependencyService.Get <ILocationService>(); _tokenService = DependencyService.Get <ITokenService>(); _studentService = DependencyService.Get <IStudentsService>(); _productResearchCodesService = DependencyService.Get <IProductResearchCodesService>(); _productResearchCodeValuesService = DependencyService.Get <IProductResearchCodeValuesService>(); _productService = DependencyService.Get <IProductService>(); _assessmentService = DependencyService.Get <IAssessmentsService>(); _contentCategoryLevelsService = DependencyService.Get <IContentCategoryLevelsService>(); _contentCategoryService = DependencyService.Get <IContentCategoryService>(); _contentCategoryItemsService = DependencyService.Get <IContentCategoryItemsService>(); _programNoteService = DependencyService.Get <IProgramNoteService>(); _examinerService = DependencyService.Get <IExaminerService>(); _contentItemService = DependencyService.Get <IContentItemsService>(); _contentItemAttributeService = DependencyService.Get <IContentItemAttributesService>(); _contentRubricsService = DependencyService.Get <IContentRubricsService>(); _contentRubicPointsService = DependencyService.Get <IContentRubricPointsService>(); _contentItemTalliesService = DependencyService.Get <IContentItemTallyService>(); _contentItemTalliesScoresService = DependencyService.Get <IContentItemTalliesScoresService>(); _contentGroupService = DependencyService.Get <IContentGroupService>(); _contentGroupItemsService = DependencyService.Get <IContentGroupItemsService>(); _orgRecordFormService = DependencyService.Get <IOrgRecordFormService>(); _userPermissionService = DependencyService.Get <IUserPermissionService>(); var userID = Convert.ToInt32(Application.Current.Properties["UserID"]); var user = userService.GetUserByID(userID); if (user != null) { DeviceID = user.DeviceId; } CheckInternet(); if (Xamarin.Essentials.Connectivity.NetworkAccess != Xamarin.Essentials.NetworkAccess.Internet) { IsInternetAvailable = false; string userFirstName = "", userLastName = ""; if (Application.Current.Properties.ContainsKey("FirstName") && Application.Current.Properties["FirstName"] != null) { userFirstName = Application.Current.Properties["FirstName"].ToString(); } if (Application.Current.Properties.ContainsKey("LastName") && Application.Current.Properties["LastName"] != null) { userLastName = Application.Current.Properties["LastName"].ToString(); } UserFullName = "" + userFirstName + " " + "" + userLastName + ""; } else { IsInternetAvailable = true; _tokenService = DependencyService.Get <ITokenService>(); var tokenModel = _tokenService.GetTokenResposne(); if (tokenModel != null) { UserFullName = "" + tokenModel.FirstName + " " + "" + tokenModel.LastName + ""; } } FailedString = "Failed: 0"; PendingString = "Pending: 0"; NewAssessmentCommand = new Command(NewAssessment); ResumeAssessmentCommand = new Command(ResumeAssessment); BrowseUpdateRecordCommand = new Command(BrowseUpdate); AddNewRecordCommand = new Command(AddNew); ReportToFamilyCommand = new Command(Report); OpenFullReportCommand = new Command(OpenFullReport); ShowInfoCommand = new Command(openInfo); HomeCommand = new Command(async() => { var popUpNavigationInstance = PopupNavigation.Instance; await popUpNavigationInstance.PushAsync(new LogoutpopupView()); //await App.Current.MainPage.Navigation.PushModalAsync(new LogoutpopupView()); //if (!Application.Current.Properties.ContainsKey("RememberMe") || Application.Current.Properties["RememberMe"].ToString() == "False") //{ //Application.Current.Properties.Clear(); //} //App.LogoutAction?.Invoke(false); }); }