Class ViewDescriptorEnumeratorFactory
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
public class ViewDescriptorEnumeratorFactory : IViewDescriptorEnumeratorFactory
Constructors
ViewDescriptorEnumeratorFactory(IFactoryInjector, IReflectionHelper, ILogger<ViewDescriptorEnumeratorFactory>)
Declaration
public ViewDescriptorEnumeratorFactory(IFactoryInjector factoryInjector, IReflectionHelper reflectionHelper, ILogger<ViewDescriptorEnumeratorFactory> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IFactoryInjector | factoryInjector | |
| IReflectionHelper | reflectionHelper | |
| ILogger<ViewDescriptorEnumeratorFactory> | logger |
Methods
GetEntitiesWithDefaultViewImplementation<TEnumerator>()
Gets a list of EntityDescriptor that have default view implementations for the supplied ViewDescriptorEnumerator type.
Declaration
public EntityDescriptor[] GetEntitiesWithDefaultViewImplementation<TEnumerator>() where TEnumerator : ViewDescriptorEnumerator
Returns
| Type | Description |
|---|---|
| EntityDescriptor[] |
Type Parameters
| Name | Description |
|---|---|
| TEnumerator | The enumerator type |
GetEnumeratorByType(Type)
Given an enumerator type, returns the enumerator.
Declaration
public ViewDescriptorEnumerator GetEnumeratorByType(Type enumeratorType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | enumeratorType | The type of the enumerator |
Returns
| Type | Description |
|---|---|
| ViewDescriptorEnumerator | The enumerator, or null |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The type must inherit ViewDescriptorEnumerator |
LoadDefaultEnumerators()
Tells any default enumerators to load their controllers.
Declaration
public Task LoadDefaultEnumerators()
Returns
| Type | Description |
|---|---|
| Task |