Class AvailableModelSettingsRepository

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Default implementation of IAvailableModelSettingsRepository.

Inheritance
System.Object
AvailableModelSettingsRepository
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction.RuntimeModel.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(IAvailableModelSettingsRepository), Lifecycle = ServiceInstanceScope.Singleton)]
public class AvailableModelSettingsRepository : IAvailableModelSettingsRepository

Constructors

AvailableModelSettingsRepository(ServiceAccessor<IContentTypeRepository>)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the AvailableModelSettingsRepository class.

Declaration
public AvailableModelSettingsRepository(ServiceAccessor<IContentTypeRepository> contentTypeRepository)
Parameters
Type Name Description
ServiceAccessor<IContentTypeRepository> contentTypeRepository

The content type repository.

Methods

GetRuntimeSetting(Type)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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.Type model

The model.

Returns
Type Description
IContentTypeAvailableModelSetting

GetSetting(Type)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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.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()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Lists all registered model settings.

Declaration
public virtual IDictionary<Type, IContentTypeAvailableModelSetting> ListRuntimeSettings()
Returns
Type Description
System.Collections.Generic.IDictionary<System.Type, IContentTypeAvailableModelSetting>

RegisterSetting(Type, IContentTypeAvailableModelSetting)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Sets available page types settings for a model that corresponds to a PageType.

Declaration
public virtual 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

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Occurs when a setting has been changed.

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

Implements

Extension Methods