November Happy Hour will be moved to Thursday December 5th.

Interface IAvailableModelSettingsRepository

Defines the signature for a component that acts as repository for available page types settings defined on models.

Namespace: EPiServer.DataAbstraction.RuntimeModel
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public interface IAvailableModelSettingsRepository

Methods

GetRuntimeSetting(Type)

Gets the available page types settings registered for a model as the result when possible several models have been registered.

Declaration
ContentTypeAvailableModelSetting GetRuntimeSetting(Type model)
Parameters
Type Name Description
System.Type model

The model.

Returns
Type Description
ContentTypeAvailableModelSetting

GetSetting(Type)

Gets the available page types settings registered for a model as it was registered.

Declaration
IContentTypeAvailableModelSetting GetSetting(Type model)
Parameters
Type Name Description
System.Type model

The model.

Returns
Type Description
IContentTypeAvailableModelSetting
Remarks

The runtime settings on ContentTypeAvailabilityService will be the merged result from settings specified on the content type and on the model.

ListRuntimeSettings()

Lists all registered model settings.

Declaration
IDictionary<Type, ContentTypeAvailableModelSetting> ListRuntimeSettings()
Returns
Type Description
System.Collections.Generic.IDictionary<System.Type, ContentTypeAvailableModelSetting>

RegisterSetting(Type, IContentTypeAvailableModelSetting)

Sets available page types settings for a model that corresponds to a PageType.

Declaration
void RegisterSetting(Type model, IContentTypeAvailableModelSetting modelSetting)
Parameters
Type Name Description
System.Type model

The model.

IContentTypeAvailableModelSetting modelSetting

The model setting.

Remarks

The runtime settings on ContentTypeAvailabilityService will be the merged result from settings specified on the content type and on the model.

Events

SettingsChanged

Occurs when a setting has been changed.

Declaration
event EventHandler<RepositoryEventArgs> SettingsChanged
Event Type
Type Description
System.EventHandler<RepositoryEventArgs>

Extension Methods