Class AvailableModelSettingsRepository
Default implementation of IAvailable
Inheritance
Implements
Namespace: EPiServer.DataAbstraction.RuntimeModel.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class AvailableModelSettingsRepository : Object, IAvailableModelSettingsRepository
Constructors
AvailableModelSettingsRepository(ServiceAccessor<IContentTypeRepository>)
Initializes a new instance of the Available
Declaration
public AvailableModelSettingsRepository(ServiceAccessor<IContentTypeRepository> contentTypeRepository)
Parameters
Type | Name | Description |
---|---|---|
Service |
contentTypeRepository | The content type repository. |
Methods
GetRuntimeSetting(Type)
Gets the available page types settings registered for a model as the result when possible several models have been registered.
Declaration
public virtual IContentTypeAvailableModelSetting GetRuntimeSetting(Type model)
Parameters
Type | Name | Description |
---|---|---|
System. |
model | The model. |
Returns
Type | Description |
---|---|
IContent |
GetSetting(Type)
Gets the available page types settings registered for a model as it was registered.
Declaration
public virtual IContentTypeAvailableModelSetting GetSetting(Type model)
Parameters
Type | Name | Description |
---|---|---|
System. |
model | The model. |
Returns
Type | Description |
---|---|
IContent |
Remarks
The runtime settings on Content
ListRuntimeSettings()
Lists all registered model settings.
Declaration
public virtual IDictionary<Type, IContentTypeAvailableModelSetting> ListRuntimeSettings()
Returns
Type | Description |
---|---|
System. |
RegisterSetting(Type, IContentTypeAvailableModelSetting)
Sets available page types settings for a model that corresponds to a Page
Declaration
public virtual void RegisterSetting(Type model, IContentTypeAvailableModelSetting modelSetting)
Parameters
Type | Name | Description |
---|---|---|
System. |
model | The model. |
IContent |
modelSetting | The model setting. |
Remarks
The runtime settings on Content
Events
SettingsChanged
Occurs when a setting has been changed.
Declaration
public event EventHandler<RepositoryEventArgs> SettingsChanged
Event Type
Type | Description |
---|---|
System. |