コード例 #1
0
 public StaticContentItemBuilder(IStaticContentItemFactory factory,
                                 IContentItemReaderFactory readerFactory, IContentRestorerFactory restorerFactory)
 {
     _factory         = factory;
     _readerFactory   = readerFactory;
     _restorerFactory = restorerFactory;
 }
コード例 #2
0
 public StaticContentService(IStorefrontMemoryCache memoryCache, IStaticContentItemFactory contentItemFactory,
                             IContentBlobProvider contentBlobProvider, IStaticContentLoaderFactory metadataFactory)
 {
     _contentItemFactory  = contentItemFactory;
     _contentBlobProvider = contentBlobProvider;
     _memoryCache         = memoryCache;
     _metadataFactory     = metadataFactory;
 }
コード例 #3
0
 public StaticContentService(IMemoryCache memoryCache, IWorkContextAccessor workContextAccessor,
                             IStorefrontUrlBuilder urlBuilder, IStaticContentItemFactory contentItemFactory,
                             IContentBlobProvider contentBlobProvider)
 {
     _urlBuilder          = urlBuilder;
     _contentItemFactory  = contentItemFactory;
     _contentBlobProvider = contentBlobProvider;
     _memoryCache         = memoryCache;
     _markdownPipeline    = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();
 }