Example #1
0
 public TemplateFactory(RazorContext razorContext)
 {
     if (razorContext == null) throw new ArgumentNullException("razorContext");
     _razorContext = razorContext;
     _razorEngine = new RazorTemplateEngine(new XiptonEngineHost(razorContext.Config));
     ContentManager = new ContentManager(razorContext.Config);
     ContentManager.ContentProvider.ContentModified += OnContentModified;
     ContentManager.SharedContentModified += OnSharedContentModified;
 }
Example #2
0
 public TemplateFactory(RazorContext razorContext)
 {
     if (razorContext == null)
     {
         throw new ArgumentNullException("razorContext");
     }
     _razorContext  = razorContext;
     _razorEngine   = new RazorTemplateEngine(new XiptonEngineHost(razorContext.Config));
     ContentManager = new ContentManager(razorContext.Config);
     ContentManager.ContentProvider.ContentModified += OnContentModified;
     ContentManager.SharedContentModified           += OnSharedContentModified;
 }
Example #3
0
 public CartModel(RazorContext context)
 {
     _context = context;
 }
Example #4
0
 public SearchModel(RazorContext context)
 {
     _context = context;
 }
Example #5
0
 public RegisterModel(RazorContext context)
 {
     _context = context;
 }
Example #6
0
 public IndexModel(ILogger <IndexModel> logger, RazorContext context)
 {
     _context = context;
     _logger  = logger;
 }
Example #7
0
 public LoginModel(RazorContext context)
 {
     _context = context;
 }
Example #8
0
 public IndexModel(RazorContext context)
 {
     _context = context;
 }
Example #9
0
 public DetalhesModel(RazorContext context)
 {
     _context = context;
 }
Example #10
0
 public CategoriesModel(RazorContext context)
 {
     _context = context;
 }
Example #11
0
 public SearchViewComponent(RazorContext context)
 {
     _context = context;
 }
Example #12
0
 public CategoryViewComponent(RazorContext context)
 {
     _context = context;
 }
Example #13
0
 public EditarModel(RazorContext context)
 {
     _context = context;
 }
Example #14
0
 public ProfileModel(RazorContext context)
 {
     _context = context;
 }
 public RepositoryRazor()
 {
     this.context = new RazorContext();
 }
Example #16
0
 public CreateModel(RazorContext context, ILogger <CreateModel> log)
 {
     _context = context;
     Log      = log;
 }