Class BaseEntityDefaultSingleViewInstanceEnumerator
The ViewDescriptorEnumerator for the IBaseDefaultSingleView<T>
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core.Enumerators
Assembly: LemonEdge.ClientCore.dll
Syntax
public class BaseEntityDefaultSingleViewInstanceEnumerator : ViewDescriptorEnumerator, IDefaultViewDescriptorEnumerator, IHaveAddInListeners
Constructors
BaseEntityDefaultSingleViewInstanceEnumerator(IDomainContextEventHandler, IEntityDescriptorFactory, IReflectionHelper, ILogger<BaseEntityDefaultSingleViewInstanceEnumerator>)
Declaration
public BaseEntityDefaultSingleViewInstanceEnumerator(IDomainContextEventHandler eventHandler, IEntityDescriptorFactory entityDescriptorFactory, IReflectionHelper reflectionHelper, ILogger<BaseEntityDefaultSingleViewInstanceEnumerator> logger)
Parameters
Type | Name | Description |
---|---|---|
IDomainContextEventHandler | eventHandler | |
IEntityDescriptorFactory | entityDescriptorFactory | |
IReflectionHelper | reflectionHelper | |
ILogger<BaseEntityDefaultSingleViewInstanceEnumerator> | logger |
Properties
EntitiesWithDefaultImplementation
Gets the list of descriptors that this enumerator has controllers for.
Declaration
public IEnumerable<EntityDescriptor> EntitiesWithDefaultImplementation { get; }
Property Value
Type | Description |
---|---|
IEnumerable<EntityDescriptor> |
Methods
AddAddInListeners()
Adds listeners.
Declaration
public void AddAddInListeners()
GetAnyReplacingVersion(ViewDescriptorInstance)
Returns any ViewDescriptorInstance definitions from GetViewInstances() where they come from a custom ICustomView and configured to replace a standard view ( ReplaceCoreView)
Declaration
public override ViewDescriptorInstance GetAnyReplacingVersion(ViewDescriptorInstance ofView)
Parameters
Type | Name | Description |
---|---|---|
ViewDescriptorInstance | ofView | The standard view instance to replace with a configured one if one is available |
Returns
Type | Description |
---|---|
ViewDescriptorInstance | Any ViewDescriptorInstance definitions from GetViewInstances() where they come
from a custom ICustomView and configured to replace a standard view (
ReplaceCoreView), or just the provided |
Overrides
GetViewInstances()
Provides an enumeration of all the View Descriptor Instances that can be used against the IBaseDefaultSingleView<T> including custom ones defined from BaseDefaultSingleViewCustomController<T>
Declaration
public override IEnumerable<ViewDescriptorInstance> GetViewInstances()
Returns
Type | Description |
---|---|
IEnumerable<ViewDescriptorInstance> | An enumeration of all the View Descriptor Instances that can be used against the IBaseDefaultSingleView<T> including custom ones defined from BaseDefaultSingleViewCustomController<T> |
Overrides
RemoveAddInListeners()
Removes listeners.
Declaration
public void RemoveAddInListeners()