Class SharedBlockFactory
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Default implementaion of ISharedBlockFactory.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Construction.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration(typeof(ISharedBlockFactory), Lifecycle = ServiceInstanceScope.Singleton)]
public class SharedBlockFactory : ISharedBlockFactory
Constructors
SharedBlockFactory(IContentDataBuilder, ConstructorParameterResolver, ServiceAccessor<ContentDataInterceptor>)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the SharedBlockFactory class.
Declaration
public SharedBlockFactory(IContentDataBuilder blockDataBuilder, ConstructorParameterResolver constructorParameterResolver, ServiceAccessor<ContentDataInterceptor> contentDataInterceptorAccessor)
Parameters
Type | Name | Description |
---|---|---|
IContentDataBuilder | blockDataBuilder | The block data builder. |
ConstructorParameterResolver | constructorParameterResolver | The constructor parameter resolver. |
ServiceAccessor<ContentDataInterceptor> | contentDataInterceptorAccessor | The content data interceptor accessor. |
Methods
CreateAndPopulateSharedBlock(BlockType)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates a shared instance of a block of type defined by blockType
.
Declaration
public virtual IContent CreateAndPopulateSharedBlock(BlockType blockType)
Parameters
Type | Name | Description |
---|---|---|
BlockType | blockType | Type of the block. |
Returns
Type | Description |
---|---|
IContent |
Remarks
This is the method used by system to create a proxy implementing IContent for a block when loading from database.
CreateSharedBlock(Type)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates a IContent instance by creating a proxy of passed in type (must inherit IContentData) and a MixIn class that implements IContent.
Declaration
public virtual IContent CreateSharedBlock(Type modelType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | modelType | Type of the model. |
Returns
Type | Description |
---|---|
IContent |