/// <summary> /// Renders the header of the column on which this sorter is working. /// </summary> /// <param name="context">The <see cref="IMansionWebContext"/>.</param> /// <param name="templateService">The <see cref="ITemplateService"/>.</param> /// <param name="dataset">The <see cref="Dataset"/> rendered in this column.</param> /// <exception cref="ArgumentNullException">Thrown if one of the parameters is null.</exception> public void RenderHeader(IMansionWebContext context, ITemplateService templateService, Dataset dataset) { // validate arguments if (context == null) throw new ArgumentNullException("context"); if (templateService == null) throw new ArgumentNullException("templateService"); if (dataset == null) throw new ArgumentNullException("dataset"); // determine if this column sort is active var activeSort = dataset.Sorts.FirstOrDefault(); // check if there is an active sort var active = false; var ascending = false; if (activeSort != null && PropertyName.Equals(activeSort.PropertyName, StringComparison.OrdinalIgnoreCase)) { active = true; ascending = activeSort.Ascending; } // create the sort properties var properties = new PropertyBag { {"active", active}, {"direction", ascending}, {"sortParameter", PropertyName + " " + (ascending ? "desc" : "asc")} }; using (context.Stack.Push("ColumnSortProperties", properties)) templateService.Render(context, "GridControl" + GetType().Name + "Header").Dispose(); }
public RazorViewParser(ITemplateService templateService) { if (templateService == null) throw new ArgumentNullException("templateService"); _templateService = templateService; }
public AccountEntityOperationLogic(INotificationService notificationService, ITemplateService templateService, IEntityRepository repository, ISecurityService securityService) { _notificationService = notificationService; _templateService = templateService; _repository = repository; _securityService = securityService; }
public ProvidersController(IProviderService providerService, INotificationService notificationService, ITemplateService templateService, ISysConfig config) { this._providerService = providerService; _notificationService = notificationService; _templateService = templateService; _config = config; }
public RazorViewParser(ITemplateResolver resolver) { if (resolver == null) throw new ArgumentNullException("resolver"); var config = new TemplateServiceConfiguration { Resolver = resolver }; _templateService = new TemplateService(config); }
/// <summary> /// Creates a new <see cref="FileSystemRazorViewEngine"/> that finds views within the given path. /// </summary> /// <param name="viewPathRoot">The root directory that contains views.</param> public FileSystemRazorViewEngine(string viewPathRoot) { this.viewPathRoot = viewPathRoot; var razorConfig = new TemplateServiceConfiguration(); razorConfig.Resolver = new DelegateTemplateResolver(ResolveTemplate); razorService = new TemplateService(razorConfig); }
public MessagingService(ITemplateService templateService, ICalendarService calendarService, IConfigurationService configurationService, IAgencyService agencyService, ISmtpService smtpService) { this.templateService = templateService; this.calendarService = calendarService; this.configurationService = configurationService; this.agencyService = agencyService; this.smtpService = smtpService; }
public PageService(IDocumentSession session, IFolderService folderService, ITemplateService templateService, ICacheProvider cacheProvider) : base(session) { this.folderService = folderService; this.templateService = templateService; this.cacheProvider = cacheProvider; }
// Test for jenkins public TemplateController(ITemplateService templateService, IMapper<Domain.Entities.Template, DistributedServices.Entities.TemplateDto> mapper, ICache<DistributedServices.Entities.TemplateDto> cache) { _templateService = templateService; _mapper = mapper; _cache = cache; }
public CharacterController(ICharacterService characterService, ILogger logger, IPowerService powerService, IPowerLevelService powerLevelService, ITemplateService templateService) { _characterService = characterService; _powerService = powerService; _powerLevelService = powerLevelService; _templateService = templateService; _logger = logger; }
public HomeController(IProductService productService, ITemplateService templateService, INotificationService notificationService, ISysConfig config, IProviderService providerService) { _productService = productService; _templateService = templateService; _notificationService = notificationService; _config = config; _providerService = providerService; }
/// <summary> /// Constructor. /// </summary> /// <param name="siteStructureDao"></param> /// <param name="commonDao"></param> /// <param name="fileService"></param> public SiteService(ISiteStructureDao siteStructureDao, ICommonDao commonDao, IFileService fileService, ITemplateService templateService) { this._siteStructureDao = siteStructureDao; this._commonDao = commonDao; this._fileService = fileService; }
/// <summary> /// /// </summary> /// <param name="templateService"></param> /// <exception cref="ArgumentNullException"></exception> public RenderSection(ITemplateService templateService) { // validaet arguments if (templateService == null) throw new ArgumentNullException("templateService"); // set values this.templateService = templateService; }
public AccountController(ITemplateService templateService, INotificationService notificationService, ISysConfig config, ICartContext cartContext, IProfileService profileService, IOrderService orderService) { _templateService = templateService; _notificationService = notificationService; _config = config; _cartContext = cartContext; _profileService = profileService; _orderService = orderService; }
public PagesController(INodeService nodeService, ITemplateService templateService, IFileService fileService, ISectionService sectionService, IModelValidator<Node> modelValidator, ModuleLoader moduleLoader) { _nodeService = nodeService; _templateService = templateService; _fileService = fileService; _sectionService = sectionService; this.ModelValidator = modelValidator; _moduleLoader = moduleLoader; }
public SiteController(ISiteService siteservice, IUserService userService, ITemplateService templateService, INodeService nodeService, IModelValidator<Site> siteValidator, IModelValidator<SiteAlias> siteAliasValidator) { _siteService = siteservice; _userService = userService; _templateService = templateService; _nodeService = nodeService; _siteAliasValidator = siteAliasValidator; ModelValidator = siteValidator; }
/// <summary> /// Render this control. /// </summary> /// <param name="context">The <see cref="IMansionWebContext"/>.</param> /// <param name="templateService">The <see cref="ITemplateService"/>.</param> protected override void DoRender(IMansionWebContext context, ITemplateService templateService) { // loop over all the controls and render them using (templateService.Render(context, GetType().Name + "Control")) { foreach (var control in Controls) control.Render(context, templateService); } }
public SectionsController(ISectionService sectionService, INodeService nodeService, ModuleLoader moduleLoader, SectionModelValidator modelValidator, ITemplateService templateService, IModuleTypeService moduleTypeService) { _sectionService = sectionService; _templateService = templateService; _moduleTypeService = moduleTypeService; _nodeService = nodeService; _moduleLoader = moduleLoader; ModelValidator = modelValidator; }
/// <summary> /// Initializes a new instance of the <see cref="PublishedContentRequest"/> class with a specific Uri and routing context. /// </summary> /// <param name="routingContext">A routing context.</param> /// <param name="templateService"></param> /// <param name="loggerFactor"></param> /// <param name="httpContextAccessor"></param> public PublishedContentRequest(RoutingContext routingContext, ITemplateService templateService, ILoggerFactory loggerFactor, IHttpContextAccessor httpContextAccessor) { if (routingContext == null) throw new ArgumentNullException("routingContext"); if (templateService == null) throw new ArgumentNullException(nameof(templateService)); _templateService = templateService; RoutingContext = routingContext; _engine = new PublishedContentRequestEngine(templateService, this, loggerFactor, httpContextAccessor); }
public TemplateShapeDisplayEvent ( ICacheManager cacheManager, ISignals signals, IContentManager contentManager, ITemplateService templateService ) { _cacheManager = cacheManager; _signals = signals; _contentManager = contentManager; _templateService = templateService; }
/// <summary> /// Renders a cell of this column. /// </summary> /// <param name="context">The <see cref="IMansionWebContext"/>.</param> /// <param name="templateService">The <see cref="ITemplateService"/>.</param> /// <param name="dataset">The <see cref="Dataset"/> rendered in this column.</param> /// <param name="row">The being rendered.</param> protected override void DoRenderCell(IMansionWebContext context, ITemplateService templateService, Dataset dataset, IPropertyBag row) { // create the cell properties var cellProperties = new PropertyBag { {"value", epxression.Execute<object>(context)} }; // render the cell using (context.Stack.Push("CellProperties", cellProperties)) templateService.Render(context, "GridControlExpressionColumnContent").Dispose(); }
/// <summary> /// /// </summary> /// <param name="applicationResourceService"></param> /// <param name="templateService"></param> /// <exception cref="ArgumentNullException"></exception> public RenderPagingControl(IApplicationResourceService applicationResourceService, ITemplateService templateService) { // validate arguments if (applicationResourceService == null) throw new ArgumentNullException("applicationResourceService"); if (templateService == null) throw new ArgumentNullException("templateService"); // set values this.applicationResourceService = applicationResourceService; this.templateService = templateService; }
/// <summary> /// /// </summary> /// <param name="applicationResourceService"></param> /// <param name="templateService"></param> /// <exception cref="ArgumentNullException"></exception> public InvokeDialogParentTriggerTag(IApplicationResourceService applicationResourceService, ITemplateService templateService) { // validate arguments if (applicationResourceService == null) throw new ArgumentNullException("applicationResourceService"); if (templateService == null) throw new ArgumentNullException("templateService"); // set values this.applicationResourceService = applicationResourceService; this.templateService = templateService; }
/// <summary> /// /// </summary> /// <param name="templateService"></param> /// <param name="conversionService"> </param> /// <exception cref="ArgumentNullException"></exception> public RenderCrumbTrail(ITemplateService templateService, IConversionService conversionService) { // validate arguments if (templateService == null) throw new ArgumentNullException("templateService"); if (conversionService == null) throw new ArgumentNullException("conversionService"); // set values this.templateService = templateService; this.conversionService = conversionService; }
public TemplateShapeBindingResolver( ICacheManager cacheManager, ISignals signals, IContentManager contentManager, IContentDefinitionManager contentDefinitionManager, ITemplateService templateService ) { _cacheManager = cacheManager; _signals = signals; _contentManager = contentManager; _contentDefinitionManager = contentDefinitionManager; _templateService = templateService; }
/// <summary> /// Default constructor. /// </summary> public AdminBasePage() { this._activeNode = null; this._siteService = Container.Resolve<ISiteService>(); this._userService = Container.Resolve<IUserService>(); this._nodeService = Container.Resolve<INodeService>(); this._sectionService = Container.Resolve<ISectionService>(); this._moduleTypeService = Container.Resolve<IModuleTypeService>(); this._moduleLoader = Container.Resolve<ModuleLoader>(); this._templateService = Container.Resolve<ITemplateService>(); this._fileService = Container.Resolve<IFileService>(); }
public ApplicationService(IDocumentSession session, IPageService pageService, ITemplateService templateService, IFolderService folderService, IPluginService pluginService, IMembershipService membershipService, IFormsAuthenticationService formsService) : base(session) { this.pageService = pageService; this.pluginService = pluginService; this.templateService = templateService; this.folderService = folderService; this.membershipService = membershipService; this.formsService = formsService; }
/// <summary> /// Renders the header of this column. /// </summary> /// <param name="context">The <see cref="IMansionWebContext"/>.</param> /// <param name="templateService">The <see cref="ITemplateService"/>.</param> /// <param name="dataset">The <see cref="Dataset"/> rendered in this column.</param> public void RenderHeaderFilter(IMansionWebContext context, ITemplateService templateService, Dataset dataset) { // validate arguments if (context == null) throw new ArgumentNullException("context"); if (templateService == null) throw new ArgumentNullException("templateService"); if (dataset == null) throw new ArgumentNullException("dataset"); // invoke template method DoRenderHeaderFilter(context, templateService, dataset); }
public EmailNotificationService( ILogService logService, IEmailService emailService, ITemplateService templateService, string fromEmail, string fromName) { _fromEmail = fromEmail; _fromName = fromName; _emailService = emailService; _logService = logService; _templateService = templateService; }
public Workflow(string solutionPath, IData data, IFileSystem fileSystem, IMessageBox messageBox, ITableDefinitionDialog tableDefinitionDialog, ITemplateService templateService) { _solutionPath = solutionPath; _data = data; _fileSystem = fileSystem; _messageBox = messageBox; _tableDefinitionDialog = tableDefinitionDialog; _templateService = templateService; }
public EnvironmentController(IProjectService _ProjectService, IAccountService _accountService, ITemplateService _templateService) { projectService = _ProjectService; accountService = _accountService; templateService = _templateService; }
public PageController(IPageService pageService, ITemplateService templateService) { this.pageService = pageService; this.templateService = templateService; }
public TemplatesController(ITemplateService service, IOptions <ProjectAppSettings> options) { _AppSettings = options.Value; _service = service; }
public NotificationTemplateController(ITemplateService templateService) { _templateService = templateService; }
internal BaseTemplateCompiler(ITemplateService razorService) { Contract.Requires(razorService != null); _razorService = razorService; }
public ForgotPasswordMailService(ISendMail sendMail, ITemplateService templateService) { _sendMail = sendMail; _templateService = templateService; }
public TemplatesController(ITemplateService templateService) { _templateService = templateService; }
public LoadTemplateOptionsWindow(ITemplateService templateService) { InitializeComponent(); _templateService = templateService; }
/// <summary> /// Initializes a new instance of the <see cref="RazorTemplateProcessor"/> class. /// </summary> /// <param name="templateService">The template service.</param> public RazorTemplateProcessor(ITemplateService templateService) : this(templateService, HostingEnvironment.VirtualPathProvider) { }
public TemplateController(ITemplateService tempSvc) { TempSvc = tempSvc; }
public SerialNumberGeneratorConfigurationIMP(ITemplateService templateService, ISerialNumberRecordRepository serialNumberRecordRepository, ISerialNumberGeneratorConfigurationStore serialNumberGeneratorConfigurationStore) { _templateService = templateService; _serialNumberRecordRepository = serialNumberRecordRepository; _serialNumberGeneratorConfigurationStore = serialNumberGeneratorConfigurationStore; }
public PrintingService(ITemplateService templateService) { _templateService = templateService; }
public ChocolateyNewCommand(ITemplateService templateService) { _templateService = templateService; }
public TemplateController(IArtifactService artifactService, ITemplateService templateService, ISelectService selectService) { _artifactService = artifactService; _templateService = templateService; _selectService = selectService; }
public Report(IConverter converter, ITemplateService templateService) { _converter = converter; _templateService = templateService; }
public CarsController(ICarsRepository carsrepository, IServicesRepository sevicesRepository, ITyreInfosRepository tyreInfosRepository, ITyreShopsRepository tyreShopsRepository, IFinancialInfosRepository financialInfosRepository, IMilageRecordsRepository milageRecordsRepository, ICarDamagesRepository carDamagesRepository, IFileDescriptionsRepository fileDescriptionsRepository, IRentsRepository rentsRepository, IHandoverDocumentsRepository handoverDocumentsRepository, IClientsRepository clientsRepository, ICarFilesRepository carFilesRepository, IInsurancePoliciesRepository insurancePoliciesRepository, ITemplateService templateService) { _carsrepository = carsrepository; _sevicesRepository = sevicesRepository; _tyreInfosRepository = tyreInfosRepository; _tyreShopsRepository = tyreShopsRepository; _financialInfosRepository = financialInfosRepository; _milageRecordsRepository = milageRecordsRepository; _carDamagesRepository = carDamagesRepository; _fileDescriptionsRepository = fileDescriptionsRepository; _rentsRepository = rentsRepository; _handoverDocumentsRepository = handoverDocumentsRepository; _clientsRepository = clientsRepository; _carFilesRepository = carFilesRepository; _insurancePoliciesRepository = insurancePoliciesRepository; _templateService = templateService; }
public TemplateCommandHandler(ITemplateService templateService, ICommonService commonService, IEventSender eventSender) { _templateService = templateService; _commonService = commonService; _eventSender = eventSender; }
public NonceTemplateSettingsPartDriver(IContentManager contentManager, ITemplateService templateService) { _contentManager = contentManager; _templateService = templateService; T = NullLocalizer.Instance; }
public void TestCaseInit() { m_FTISFactory = new FTISFactory(); m_TemplateService = m_FTISFactory.GetTemplateService(); }
public WelcomeMailService(ISendMail mailService, ITemplateService templateService) { _mailService = mailService; _templateService = templateService; }
public NotaFiscalService(INotaFiscalRepository repository, ITemplateService templateService) { _repository = repository; _templateService = templateService; }
public TemplateController(ITemplateService templateService, IMapper mapper, ScientificOlympDBContext context) { _templateService = templateService; _mapper = mapper; _context = context; }
public virtual IHtmlContent Render(ITemplateService templateService, IViewBufferScope bufferScope, ViewContext viewContext) { return(new HtmlString(HtmlString)); }
/// <summary> /// Initializes a new instance of the <see cref="RazorTemplateProcessor"/> class. /// </summary> /// <param name="templateService">The template service.</param> /// <param name="virtualPathProvider">The virtual path provider for retrieving files.</param> public RazorTemplateProcessor(ITemplateService templateService, VirtualPathProvider virtualPathProvider) { this.service = templateService; this.virtualPathProvider = virtualPathProvider; }
public TemplateController(ITemplateService templateService) { this.templateService = templateService; }
public TemplateController(ITemplateService tempSvc, IHostEnvironment hostEnv) { this.TempSvc = tempSvc; this.HostEnv = hostEnv; }
public TemplateController(IMapper autoMapperService, ITemplateService templateService) { this._autoMapperService = autoMapperService; this._templateService = templateService; }
public ClientesController(IConverter converter, IRazorViewEngine engine, IServiceProvider service, ITempDataProvider provider) { this._converter = converter; this._templateService = new TemplateService(engine, service, provider); }
public DeleteTemplateHandler(IBusPublisher busPublisher, ITemplateService templateService) { _busPublisher = busPublisher; _templateService = templateService; }
public MailCommunicationPartDriver(IContentManager contentManager, IOrchardServices orchardServices, ITemplateService templateService) { _contentManager = contentManager; _orchardServices = orchardServices; _templateService = templateService; }