Class ComponentComposer<TComponent>
Provides a composer that appends a component.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Composing
Assembly: Umbraco.Core.dll
Syntax
public abstract class ComponentComposer<TComponent> : IComposer, IDiscoverable where TComponent : IAsyncComponent
Type Parameters
Name | Description |
---|---|
TComponent | The type of the component. |
Remarks
Thanks to this class, a component that does not compose anything can be registered with one line:
public class MyComponentComposer : ComponentComposer<MyComponent> { }
Methods
View SourceCompose(IUmbracoBuilder)
Compose.
Declaration
public virtual void Compose(IUmbracoBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder |