Class WebsiteUmbracoBuilderExtensions
Provides extension methods to the IUmbracoBuilder class.
Inheritance
Namespace: Umbraco.Extensions
Assembly: Umbraco.Web.Website.dll
Syntax
public static class WebsiteUmbracoBuilderExtensions
Methods
View SourceSetContentLastChanceFinder(IUmbracoBuilder, Func<IServiceProvider, IContentLastChanceFinder>)
Sets the content last chance finder.
Declaration
public static IUmbracoBuilder SetContentLastChanceFinder(this IUmbracoBuilder builder, Func<IServiceProvider, IContentLastChanceFinder> factory)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
Func<IServiceProvider, IContentLastChanceFinder> | factory | A function creating a last chance finder. |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
SetContentLastChanceFinder(IUmbracoBuilder, IContentLastChanceFinder)
Sets the content last chance finder.
Declaration
public static IUmbracoBuilder SetContentLastChanceFinder(this IUmbracoBuilder builder, IContentLastChanceFinder finder)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
IContentLastChanceFinder | finder | A last chance finder. |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
SetContentLastChanceFinder<T>(IUmbracoBuilder)
Sets the content last chance finder.
Declaration
public static IUmbracoBuilder SetContentLastChanceFinder<T>(this IUmbracoBuilder builder)
where T : class, IContentLastChanceFinder
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
Type Parameters
Name | Description |
---|---|
T | The type of the content last chance finder. |
SetSiteDomainHelper(IUmbracoBuilder, Func<IServiceProvider, ISiteDomainMapper>)
Sets the site domain helper.
Declaration
public static IUmbracoBuilder SetSiteDomainHelper(this IUmbracoBuilder builder, Func<IServiceProvider, ISiteDomainMapper> factory)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
Func<IServiceProvider, ISiteDomainMapper> | factory | A function creating a helper. |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
SetSiteDomainHelper(IUmbracoBuilder, ISiteDomainMapper)
Sets the site domain helper.
Declaration
public static IUmbracoBuilder SetSiteDomainHelper(this IUmbracoBuilder builder, ISiteDomainMapper helper)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
ISiteDomainMapper | helper | A helper. |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
SetSiteDomainHelper<T>(IUmbracoBuilder)
Sets the site domain helper.
Declaration
public static IUmbracoBuilder SetSiteDomainHelper<T>(this IUmbracoBuilder builder)
where T : class, ISiteDomainMapper
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
Type Parameters
Name | Description |
---|---|
T | The type of the site domain helper. |
SetTreeSearcherFields(IUmbracoBuilder, Func<IServiceProvider, IUmbracoTreeSearcherFields>)
Sets the UmbracoTreeSearcherFields to change fields that can be searched in the backoffice.
Declaration
public static IUmbracoBuilder SetTreeSearcherFields(this IUmbracoBuilder builder, Func<IServiceProvider, IUmbracoTreeSearcherFields> factory)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
Func<IServiceProvider, IUmbracoTreeSearcherFields> | factory | A function creating a TreeSearcherFields |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
SetTreeSearcherFields(IUmbracoBuilder, IUmbracoTreeSearcherFields)
Sets the UmbracoTreeSearcherFields to change fields that can be searched in the backoffice.
Declaration
public static IUmbracoBuilder SetTreeSearcherFields(this IUmbracoBuilder builder, IUmbracoTreeSearcherFields treeSearcherFields)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
IUmbracoTreeSearcherFields | treeSearcherFields | An UmbracoTreeSearcherFields. |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
SetTreeSearcherFields<T>(IUmbracoBuilder)
Sets the UmbracoTreeSearcherFields to change fields that can be searched in the backoffice.
Declaration
public static IUmbracoBuilder SetTreeSearcherFields<T>(this IUmbracoBuilder builder)
where T : class, IUmbracoTreeSearcherFields
Parameters
Type | Name | Description |
---|---|---|
IUmbracoBuilder | builder | The builder. |
Returns
Type | Description |
---|---|
IUmbracoBuilder |
Type Parameters
Name | Description |
---|---|
T | The type of the Umbraco tree searcher fields. |