public CompanyDepartmentJobRoleViewModel(ISetupService <CompanyDepartmentJobRole> _service, IEventAggregator _eventAggregator) : base(new CompanyDepartmentJobRoleService()) { modelName = "Coy Dept Job Role"; Initialize(); eventAggregator = _eventAggregator; companyService = new CompanyService(); departmentService = new DepartmentService(); jobRoleService = new JobRoleService(); companyDepartmentService = new CompanyDepartmentService(); companyDepartmentJobRoleService = new CompanyDepartmentJobRoleService(); //LoadAllCompaniesCompleted(); //companyService.LoadAll(); //LoadAllJobRolesCompleted(); //jobRoleService.LoadAll(); base.addSelector = cdjr => cdjr.Company.Id == Model.Company.Id && cdjr.Department.Id == Model.Department.Id && cdjr.JobRole.Id == Model.JobRole.Id; base.modifySelector = cdjr => cdjr.Company.Id == Model.Company.Id && cdjr.Department.Id == Model.Department.Id && cdjr.JobRole.Id == Model.JobRole.Id && cdjr.Id != Model.Id; //eventAggregator.GetEvent<SetupEvent>().Subscribe(OnInitialise); OnInitialise(""); }
public ExecuteRecipeAction( IOrchardServices orchardServices, ISetupService setupService, ShellSettings shellSettings, IEnumerable <IRecipeExecutionStep> recipeExecutionSteps, IRecipeParser recipeParser, IRecipeExecutor recipeExecutor, IDatabaseManager databaseManager, ISweepGenerator sweepGenerator, IRecipeStepQueue recipeStepQueue, IRepository <RecipeStepResultRecord> recipeStepResultRepository) { _orchardServices = orchardServices; _setupService = setupService; _shellSettings = shellSettings; _recipeExecutionSteps = recipeExecutionSteps; _recipeParser = recipeParser; _recipeExecutor = recipeExecutor; _databaseManager = databaseManager; _sweepGenerator = sweepGenerator; _recipeStepQueue = recipeStepQueue; _recipeStepResultRepository = recipeStepResultRepository; RecipeExecutionTimeout = 600; }
public ExecuteRecipeAction( IOrchardServices orchardServices, ISetupService setupService, ShellSettings shellSettings, IEnumerable<IRecipeExecutionStep> recipeExecutionSteps, IRecipeParser recipeParser, IRecipeExecutor recipeExecutor, IDatabaseManager databaseManager, ISweepGenerator sweepGenerator, IRecipeStepQueue recipeStepQueue, IRepository<RecipeStepResultRecord> recipeStepResultRepository) { _orchardServices = orchardServices; _setupService = setupService; _shellSettings = shellSettings; _recipeExecutionSteps = recipeExecutionSteps; _recipeParser = recipeParser; _recipeExecutor = recipeExecutor; _databaseManager = databaseManager; _sweepGenerator = sweepGenerator; _recipeStepQueue = recipeStepQueue; _recipeStepResultRepository = recipeStepResultRepository; RecipeExecutionTimeout = 600; }
/// <summary> /// Sets up a tenant. /// </summary> /// <param name="setupService">The setup service.</param> /// <param name="setupOptions">The tenant setup options.</param> /// <param name="shellSettings">The tenant shell settings.</param> /// <returns> /// Returns <c>true</c> if successfully setup. /// </returns> public async Task <bool> SetupTenantAsync(ISetupService setupService, TenantSetupOptions setupOptions, ShellSettings shellSettings) { var setupContext = await GetSetupContextAsync(setupOptions, setupService, shellSettings); _logger.LogInformation("AutoSetup is initializing the site"); await setupService.SetupAsync(setupContext); if (setupContext.Errors.Count == 0) { _logger.LogInformation($"AutoSetup successfully provisioned the site {setupOptions.SiteName}"); return(true); } var stringBuilder = new StringBuilder(); foreach (var error in setupContext.Errors) { stringBuilder.AppendLine($"{error.Key} : '{error.Value}'"); } _logger.LogError("AutoSetup failed installing the site '{SiteName}' with errors: {Errors}", setupOptions.SiteName, stringBuilder); return(false); }
public HomeController(ILog logger, IConfigurationService configurationService, IUrlBuilder urlBuilder, ISetupService setupService, IRoutingService routingService) : base(logger, configurationService) { this.urlBuilder = urlBuilder; this.setupService = setupService; this.routingService = routingService; }
public CreateAndSetUpTenantTask(IShellSettingsManager shellSettingsManager, IShellHost shellHost, ISetupService setupService, IClock clock, IWorkflowExpressionEvaluator expressionEvaluator, IWorkflowScriptEvaluator scriptEvaluator, IUpdateModelAccessor updateModelAccessor, IStringLocalizer <CreateAndSetUpTenantTask> localizer) : base(shellSettingsManager, shellHost, expressionEvaluator, scriptEvaluator, localizer) { SetupService = setupService; _clock = clock; _updateModelAccessor = updateModelAccessor; }
public ApiController( IShellHost shellHost, ShellSettings currentShellSettings, IAuthorizationService authorizationService, IShellSettingsManager shellSettingsManager, IEnumerable <DatabaseProvider> databaseProviders, IDataProtectionProvider dataProtectorProvider, ISetupService setupService, IClock clock, INotifier notifier, IEnumerable <IRecipeHarvester> recipeHarvesters, IStringLocalizer <AdminController> stringLocalizer, IHtmlLocalizer <AdminController> htmlLocalizer) { _dataProtectorProvider = dataProtectorProvider; _setupService = setupService; _clock = clock; _recipeHarvesters = recipeHarvesters; _shellHost = shellHost; _authorizationService = authorizationService; _shellSettingsManager = shellSettingsManager; _databaseProviders = databaseProviders; _currentShellSettings = currentShellSettings; _notifier = notifier; S = stringLocalizer; H = htmlLocalizer; }
public IntelligentTaggingController( IWebUtilWrapper webUtil, ISitecoreDataWrapper dataWrapper, IIntelligentTaggingSettings settings, ISetupInformationFactory setupFactory, ISetupService setupService, IContentSearchWrapper contentSearch, INaturalLanguageClassifierService naturalLanguageClassifier, IContentService contentService, IContentSearchService contentSearchService, IClassifierFactory classifierFactory) { WebUtil = webUtil; DataWrapper = dataWrapper; Settings = settings; SetupFactory = setupFactory; SetupService = setupService; ContentSearch = contentSearch; NaturalLanguageClassifier = naturalLanguageClassifier; ContentService = contentService; ContentSearchService = contentSearchService; ClassifierFactory = classifierFactory; Id = WebUtil.GetQueryString("id"); Language = WebUtil.GetQueryString("language"); Database = WebUtil.GetQueryString("db"); }
public SetupController( ISetupService setupService, ShellSettings shellSettings) { _setupService = setupService; _shellSettings = shellSettings; }
public ApiController( IShellHost shellHost, ShellSettings currentShellSettings, IAuthorizationService authorizationService, IShellSettingsManager shellSettingsManager, IDataProtectionProvider dataProtectorProvider, ISetupService setupService, IClock clock, IEmailAddressValidator emailAddressValidator, IFeatureProfilesService featureProfilesService, IOptions <IdentityOptions> identityOptions, IEnumerable <DatabaseProvider> databaseProviders, IStringLocalizer <AdminController> stringLocalizer) { _shellHost = shellHost; _currentShellSettings = currentShellSettings; _authorizationService = authorizationService; _dataProtectorProvider = dataProtectorProvider; _shellSettingsManager = shellSettingsManager; _setupService = setupService; _clock = clock; _emailAddressValidator = emailAddressValidator; _featureProfilesService = featureProfilesService; _identityOptions = identityOptions.Value; _databaseProviders = databaseProviders; S = stringLocalizer; }
public HomeController(Lazy<IDispatcher> dispatcher, Lazy<IMap> mapper, ISetupService setupService) { _dispatcher = dispatcher; _mapper = mapper; _setupService = setupService; }
public SetupController(ISetupService setupService, ShellSettings shellSettings) { _setupService = setupService; _shellSettings = shellSettings; T = NullLocalizer.Instance; }
public LocationViewModel(ISetupService <Location> _service) : base(_service) { modelName = "Location"; Initialize(); base.addSelector = l => l.Name.Equals(Model.Name, StringComparison.OrdinalIgnoreCase); base.modifySelector = l => l.Name.Equals(Model.Name, StringComparison.OrdinalIgnoreCase) && l.Id != Model.Id; }
public PeriodTypeViewModel(ISetupService <PeriodType> _service) : base(_service) { modelName = "Period Type"; Initialize(); base.addSelector = l => l.Name.Equals(Model.Name, StringComparison.OrdinalIgnoreCase); base.modifySelector = l => l.Name.Equals(Model.Name, StringComparison.OrdinalIgnoreCase) && l.Id != Model.Id; }
public SetupController( ISetupService setupService, EngineSettings engineSettings, IProjectReader projectReader) { _setupService = setupService; _engineSettings = engineSettings; _projectReader = projectReader; }
public SettingsController( ISetupService setupService, IEnumerable<DatabaseProvider> databaseProviders, IClock clock) { _setupService = setupService; _databaseProviders = databaseProviders; _clock = clock; }
public ManageRightViewModel(ISetupService <Right> _service) : base(_service) { modelName = "Right"; Initialize(); base.addSelector = l => l.Name.Equals(Model.Name, StringComparison.OrdinalIgnoreCase); base.modifySelector = l => l.Name.Equals(Model.Name, StringComparison.OrdinalIgnoreCase) && l.Id != Model.Id; }
public ResourceIssueController() { _iResourceService = new ResourceService(); _iResourceIssue = new ResourceIssueService(); _iSetupService = new SetupService(); _iResourceAuthorService = new ResourceAuthorService(); _iResourcePublicationService = new ResourcePublicationService(); rModel = new ReturnMessageModel(); }
public SetupController( ISetupService setupService, ShellSettings shellSettings, IStringLocalizer <SetupController> t) { _setupService = setupService; _shellSettings = shellSettings; T = t; }
public SetupController( ISetupService setupService, ShellSettings shellSettings, IStringLocalizer<SetupController> t) { _setupService = setupService; _shellSettings = shellSettings; T = t; }
public JobRoleViewModel(ISetupService <JobRole> _service) : base(_service) { modelName = "Job Role"; Initialize(); IsLoggedInUserHasRight = Utility.LoggedInUser.Role.UserRight.CanSetupJobRole; base.addSelector = l => l.Name.Equals(Model.Name, StringComparison.OrdinalIgnoreCase); base.modifySelector = l => l.Name.Equals(Model.Name, StringComparison.OrdinalIgnoreCase) && l.Id != Model.Id; }
public JobRoleLevelViewModel(ISetupService <Level> _service) : base(_service) { modelName = "Job Level"; Initialize(); base.addSelector = l => l.Name.Equals(Model.Name, StringComparison.OrdinalIgnoreCase); base.modifySelector = l => l.Name.Equals(Model.Name, StringComparison.OrdinalIgnoreCase) && l.Id != Model.Id; //IsLoggedInUserHasRight = Utility.LoggedInUser.Role.PersonRight.CanSetupStockCategory; }
public SetupController( ISetupService setupService, IConfiguration config, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> singInManager) { _setupService = setupService; _config = config; _userManager = userManager; _signInManager = singInManager; }
public MetricsViewModel(IMetricBaseService <Metrics> _service, ISetupService <CompanyDepartmentJobRole> _cdjrService, ISetupService <MetricsPerspective> _metricsPerspectiveService, IEventAggregator _eventAggregator) : base(_service) { cdjrService = _cdjrService; departmentService = new DepartmentService(); metricsPerspectiveService = _metricsPerspectiveService; Initialise(); OnInitialise(""); }
public void Setup() { SearchService = Substitute.For <IImageSearchService>(); DataWrapper = Substitute.For <ISitecoreDataWrapper>(); WebUtil = Substitute.For <IWebUtilWrapper>(); MediaSearchFactory = Substitute.For <ICognitiveImageSearchFactory>(); SetAltTagsAllFactory = Substitute.For <ISetAltTagsAllFactory>(); ImageAnalysisFactory = Substitute.For <ICognitiveImageAnalysisFactory>(); AnalyzeAllFactory = Substitute.For <IAnalyzeAllFactory>(); SetupService = Substitute.For <ISetupService>(); }
public HomeController( IClock clock, ISmtpService smtpService, ISetupService setupService, IShellSettingsManager shellSettingsManager) { _clock = clock; _smtpService = smtpService; _setupService = setupService; _shellSettingsManager = shellSettingsManager; }
public SetupController( INotifier notifier, ISetupService setupService, IViewsBackgroundCompilation viewsBackgroundCompilation) { _viewsBackgroundCompilation = viewsBackgroundCompilation; _notifier = notifier; _setupService = setupService; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public SetupController( ILogger <SetupController> logger, IOptions <AppOptions> appOptions, ISetupService setupService, IGraphAuthProvider graphAuthProvider) : base(logger, appOptions) { Guard.Against.Null(setupService, "SetupController_Constructor" + nameof(setupService)); Guard.Against.Null(graphAuthProvider, "SetupController_Constructor" + nameof(graphAuthProvider)); _setupService = setupService; _graphAuthProvider = graphAuthProvider; }
public SetupController( ISetupService setupService, ShellSettings shellSettings, IEnumerable <DatabaseProvider> databaseProviders, IStringLocalizer <SetupController> t) { _setupService = setupService; _shellSettings = shellSettings; _databaseProviders = databaseProviders; T = t; }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILogger <AccountController> logger, ISetupService setupService) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; _setupService = setupService; }
public SetupController( INotifier notifier, ISetupService setupService, IViewsBackgroundCompilation viewsBackgroundCompilation, ShellSettings shellSettings) { _viewsBackgroundCompilation = viewsBackgroundCompilation; _shellSettings = shellSettings; _notifier = notifier; _setupService = setupService; Logger = NullLogger.Instance; }
public HomeController( IShellSettingsManager shellSettingsManager, IShellHost shellHost, ISmtpService smtpService, ISetupService setupService, IClock clock) { _shellSettingsManager = shellSettingsManager; _shellHost = shellHost; _smtpService = smtpService; _setupService = setupService; _clock = clock; }
public MetricRatingViewModel(IMetricBaseService <MetricRating> _service, ISetupService <RatingType> _ratingTypeService, ISetupService <Infrastructure.MangoService.Rating> _ratingService, ISetupService <CompanyDepartmentJobRole> _cdjrService, IEventAggregator _eventAggregator) : base(_service) { cdjrService = _cdjrService; ratingService = _ratingService; ratingTypeService = _ratingTypeService; Initialise(); //_eventAggregator.GetEvent<SetupEvent>().Subscribe(OnInitialise); OnInitialise(""); }
public PeriodViewModelBase(ISetupService <Period> _service, IEventAggregator _eventAggregator) : base(_service) { periodTypeService = new PeriodTypeService(); //LoadAllPeriodTypeCompleted(); //periodTypeService.LoadAll(); //PopulateYears(yearStartsFrom); //_eventAggregator.GetEvent<SetupEvent>().Subscribe(OnInitialise); OnInitialise(""); }
public DefaultApplication(ILogger logger, IDispatcher dispatcher, IResourceStringProvider resourceProvider, ISetupService setupService) { if (logger == null) throw new ArgumentNullException(nameof(logger)); if (dispatcher == null) throw new ArgumentNullException(nameof(dispatcher)); if (resourceProvider == null) throw new ArgumentNullException(nameof(resourceProvider)); if (setupService == null) throw new ArgumentNullException(nameof(setupService)); _logger = logger; _dispatcher = dispatcher; _resourceProvider = resourceProvider; _setupService = setupService; }
public ApplicationIntegration(string name, string root) { _name = name; _root = root; var container = new WindsorContainer(); container.Install(new DatabaseServiceInstaller()); container.Register(Component.For<ILogger>().ImplementedBy<ConsoleLogger>().IsDefault()); _siteService = container.Resolve<ISiteService>(); _setupService = container.Resolve<ISetupService>(); _crawlService = container.Resolve<ICrawlService>(); _crawler = new Crawler(_crawlService, container.Resolve<ILogger>()); }
public SetupController( INotifier notifier, ISetupService setupService, IViewsBackgroundCompilation viewsBackgroundCompilation, ShellSettings shellSettings) { _viewsBackgroundCompilation = viewsBackgroundCompilation; _shellSettings = shellSettings; _notifier = notifier; _setupService = setupService; T = NullLocalizer.Instance; Logger = NullLogger.Instance; RecipeExecutionTimeout = 600; }
public SetupCommand(ISetupService setupService, IRecipeHarvester recipeHarvester) { _setupService = setupService; _recipeHarvester = recipeHarvester; }
public HomeController(ISiteService siteService, ISetupService setup) { _siteService = siteService; _setup = setup; }
public RoutingService(ISetupService setupService, IPageService pageService, ILog logger) { this.setupService = setupService; this.pageService = pageService; this.logger = logger; }
public SetupController(INotifier notifier, ISetupService setupService, IAppDataFolder appDataFolder) { _appDataFolder = appDataFolder; _notifier = notifier; _setupService = setupService; T = NullLocalizer.Instance; }
public SetupCommand(ISetupService setupService) { _setupService = setupService; }
protected internal SetupController(ISetupService setupService, IUserService userService) { _setupService = setupService; _userService = userService; }