public DomainRepositoryExecutorWithElevatedPermissions( IDomainRepositoryExecutor innerDomainRepositoryExecutor, IExecutionContextFactory executionContextFactory ) { _executionContextFactory = executionContextFactory; _innerDomainRepositoryExecutor = innerDomainRepositoryExecutor; }
public ContentRepository( IServiceProvider serviceProvider, IDomainRepositoryExecutor domainRepositoryExecutor ) { ServiceProvider = serviceProvider; _domainRepositoryExecutor = domainRepositoryExecutor; }
public DomainRepositoryExecutorWithExecutionContext( IDomainRepositoryExecutor innerDomainRepositoryExecutor, IExecutionContext executionContext ) { _innerDomainRepositoryExecutor = innerDomainRepositoryExecutor; _executionContextOverride = executionContext; }
public DomainRepositoryExecutorWithUserContext( IDomainRepositoryExecutor innerDomainRepositoryExecutor, IExecutionContextFactory executionContextFactory, IUserContext userContext ) { _innerDomainRepositoryExecutor = innerDomainRepositoryExecutor; _executionContextFactory = executionContextFactory; _userContext = userContext; }
public DomainRepositoryExecutorWithRandomizedDuration( IDomainRepositoryExecutor innerDomainRepositoryExecutor, IExecutionDurationRandomizerScopeManager taskDurationRandomizerScopeManager, RandomizedExecutionDuration duration ) { _innerDomainRepositoryExecutor = innerDomainRepositoryExecutor; _executionDurationRandomizerScopeManager = taskDurationRandomizerScopeManager; _duration = duration; }
public DomainRepositoryExecutorWithModelState( IDomainRepositoryExecutor innerDomainRepositoryExecutor, ModelStateDictionary modelState, TemplateInfo templateInfo ) { _innerDomainRepositoryExecutor = innerDomainRepositoryExecutor; _modelState = modelState; _templateInfo = templateInfo; }
public DomainRepositoryExecutorWithUserAreaContext( IDomainRepositoryExecutor innerDomainRepositoryExecutor, IUserAreaDefinition userArea, IUserContextService userContextService, IExecutionContextFactory executionContextFactory ) { _userContextService = userContextService; _executionContextFactory = executionContextFactory; _innerDomainRepositoryExecutor = innerDomainRepositoryExecutor; _userArea = userArea; }
private void DecorateExecutor(Func <IDomainRepositoryExecutor, IDomainRepositoryExecutor> domainRepositoryExecutorFactory) { if (domainRepositoryExecutorFactory == null) { throw new ArgumentNullException(nameof(domainRepositoryExecutorFactory)); } var newExecutor = domainRepositoryExecutorFactory.Invoke(_domainRepositoryExecutor); if (newExecutor == null) { throw new InvalidOperationException(nameof(domainRepositoryExecutorFactory) + " did not return an instance."); } _domainRepositoryExecutor = newExecutor; }