Class CompositionExtensions
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class CompositionExtensions
Methods
View SourceSetPublishedSnapshotService(IUmbracoBuilder, Func<IServiceProvider, IPublishedSnapshotService>)
Sets the published snapshot service.
Declaration
public static IUmbracoBuilder SetPublishedSnapshotService(this IUmbracoBuilder builder, Func<IServiceProvider, IPublishedSnapshotService> factory)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
Func<IServiceProvider, IPublishedSnapshotService> | factory | A function creating a published snapshot service. |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
SetPublishedSnapshotService(IUmbracoBuilder, IPublishedSnapshotService)
Sets the published snapshot service.
Declaration
public static IUmbracoBuilder SetPublishedSnapshotService(this IUmbracoBuilder builder, IPublishedSnapshotService service)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
IPublishedSnapshotService | service | A published snapshot service. |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
SetPublishedSnapshotService<T>(IUmbracoBuilder)
Sets the published snapshot service.
Declaration
public static IUmbracoBuilder SetPublishedSnapshotService<T>(this IUmbracoBuilder builder)
where T : class, IPublishedSnapshotService
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
Type Parameters
Name | Description |
---|---|
T | The type of the published snapshot service. |