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