Ejemplo n.º 1
0
 public TagHelperMvcRazorHost(
     IChunkTreeCache chunkTreeCache,
     IShapeTableManager shapeTableManager)
     : base(chunkTreeCache)
 {
     TagHelperDescriptorResolver = new ViewComponentTagHelperDescriptorResolver(
         new TagHelperTypeResolver(),
         shapeTableManager);
 }
Ejemplo n.º 2
0
 public TagHelperMvcRazorHost(
     IChunkTreeCache chunkTreeCache,
     IShapeTableManager shapeTableManager,
     IThemeManager themeManager)
     : base(chunkTreeCache)
 {
     TagHelperDescriptorResolver = new ViewComponentTagHelperDescriptorResolver(
         new TagHelperTypeResolver(),
         shapeTableManager,
         themeManager);
 }
Ejemplo n.º 3
0
        public TagHelperMvcRazorHost(
            IChunkTreeCache chunkTreeCache,
            IHttpContextAccessor httpContextAccessor)
            : base(chunkTreeCache)
        {
            // We need to resolve the services using the scoped service provider
            // explicitly as IRazorViewEngine which is resolving IMvcRazorHost is
            // itself coming from the root service provider.

            // It's fine in this context as the TagHelperMvcRazorHost registration is Transient
            // which means we are not keeping any reference on IShapeTableManager and IThemeManager
            TagHelperDescriptorResolver = new ViewComponentTagHelperDescriptorResolver(
                new TagHelperTypeResolver(),
                httpContextAccessor
                );
        }
Ejemplo n.º 4
0
        public TagHelperMvcRazorHost(
            IChunkTreeCache chunkTreeCache,
            IHttpContextAccessor httpContextAccessor)
            : base(chunkTreeCache)
        {
            // We need to resolve the services using the scoped service provider
            // explicitly as IRazorViewEngine which is resolving IMvcRazorHost is
            // itself coming from the root service provider.

            // It's fine in this context as the TagHelperMvcRazorHost registration is Transient
            // which means we are not keeping any reference on IShapeTableManager and IThemeManager
            TagHelperDescriptorResolver = new ViewComponentTagHelperDescriptorResolver(
                new TagHelperTypeResolver(),
                httpContextAccessor                
            );
        }