public GetPageTemplateFileInfoByPathQueryHandler(
     IPageTemplateViewFileLocator viewLocator,
     IQueryExecutor queryExecutor,
     IViewFileReader viewFileReader,
     IPageTemplateCustomEntityTypeMapper pageTemplateCustomEntityTypeMapper
     )
 {
     _queryExecutor = queryExecutor;
     _viewLocator   = viewLocator;
     _pageTemplateCustomEntityTypeMapper = pageTemplateCustomEntityTypeMapper;
     _viewFileReader = viewFileReader;
 }
Example #2
0
 public RegisterPageTemplatesCommandHandler(
     CofoundryDbContext dbContext,
     IQueryExecutor queryExecutor,
     ICommandExecutor commandExecutor,
     IPageCache pageCache,
     IPageTemplateViewFileLocator pageTemplateViewFileLocator
     )
 {
     _dbContext                   = dbContext;
     _queryExecutor               = queryExecutor;
     _commandExecutor             = commandExecutor;
     _pageCache                   = pageCache;
     _pageTemplateViewFileLocator = pageTemplateViewFileLocator;
 }
Example #3
0
 public RegisterPageTemplatesCommandHandler(
     CofoundryDbContext dbContext,
     IQueryExecutor queryExecutor,
     ICommandExecutor commandExecutor,
     IPageCache pageCache,
     IPageTemplateViewFileLocator pageTemplateViewFileLocator,
     ITransactionScopeManager transactionScopeFactory
     )
 {
     _dbContext                   = dbContext;
     _queryExecutor               = queryExecutor;
     _commandExecutor             = commandExecutor;
     _pageCache                   = pageCache;
     _pageTemplateViewFileLocator = pageTemplateViewFileLocator;
     _transactionScopeFactory     = transactionScopeFactory;
 }