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