Пример #1
0
 public TemplatesShapeBindingResolver(
     TemplatesManager templatesManager,
     ILiquidTemplateManager liquidTemplateManager,
     PreviewTemplatesProvider previewTemplatesProvider,
     IHttpContextAccessor httpContextAccessor)
 {
     _templatesDocument        = templatesManager.GetTemplatesDocumentAsync().GetAwaiter().GetResult();
     _liquidTemplateManager    = liquidTemplateManager;
     _previewTemplatesProvider = previewTemplatesProvider;
     _httpContextAccessor      = httpContextAccessor;
 }
Пример #2
0
 public TemplatesShapeBindingResolver(
     TemplatesManager templatesManager,
     ILiquidTemplateManager liquidTemplateManager,
     PreviewTemplatesProvider previewTemplatesProvider,
     IHttpContextAccessor httpContextAccessor)
 {
     _templatesManager         = templatesManager;
     _liquidTemplateManager    = liquidTemplateManager;
     _previewTemplatesProvider = previewTemplatesProvider;
     _httpContextAccessor      = httpContextAccessor;
 }