Exemple #1
0
 public TemplatesShapeBindingResolver(
     TemplatesManager templatesManager,
     ILiquidTemplateManager liquidTemplateManager,
     IUrlHelperFactory urlHelperFactory)
 {
     _templatesDocument     = templatesManager.GetTemplatesDocumentAsync().GetAwaiter().GetResult();
     _liquidTemplateManager = liquidTemplateManager;
     _urlHelperFactory      = urlHelperFactory;
 }
Exemple #2
0
 public TemplatesShapeBindingResolver(
     TemplatesManager templatesManager,
     ILiquidTemplateManager liquidTemplateManager,
     PreviewTemplatesProvider previewTemplatesProvider,
     IHttpContextAccessor httpContextAccessor)
 {
     _templatesDocument        = templatesManager.GetTemplatesDocumentAsync().GetAwaiter().GetResult();
     _liquidTemplateManager    = liquidTemplateManager;
     _previewTemplatesProvider = previewTemplatesProvider;
     _httpContextAccessor      = httpContextAccessor;
 }