Class ExternallyPopulatedList
A simple, flat list of literal values, populated from some external source via a function passed in to constructor. This provider does not carry the attribute and is not registered for a particular list; it is intended to be returned by some other, presumably dynamic, mechanism.
Inherited Members
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.dll
Syntax
public sealed class ExternallyPopulatedList : ISoListProvider, ISoList
Remarks
Constructor saves function for later. Function is executed during Construct call. This keeps slow list population away from the constructor, which keeps locking short. Avoids blocking the factory.
Constructors
ExternallyPopulatedList(string, Func<IEnumerable<SoListItem>>)
A simple, flat list of literal values, populated from some external source via a function passed in to constructor. This provider does not carry the attribute and is not registered for a particular list; it is intended to be returned by some other, presumably dynamic, mechanism.
Declaration
public ExternallyPopulatedList(string listName, Func<IEnumerable<SoListItem>> populateFunction)
Parameters
Type | Name | Description |
---|---|---|
string | listName | |
Func<IEnumerable<SoListItem>> | populateFunction |
Remarks
Constructor saves function for later. Function is executed during Construct call. This keeps slow list population away from the constructor, which keeps locking short. Avoids blocking the factory.
Properties
HeadingItems
list of headings
Declaration
public List<ISoListHeading> HeadingItems { get; }
Property Value
Type | Description |
---|---|
List<ISoListHeading> |
Remarks
Constructor saves function for later. Function is executed during Construct call. This keeps slow list population away from the constructor, which keeps locking short. Avoids blocking the factory.
HistoryInfo
History information for the supported list
Declaration
public HistoryInfo HistoryInfo { get; }
Property Value
Type | Description |
---|---|
HistoryInfo |
Remarks
Constructor saves function for later. Function is executed during Construct call. This keeps slow list population away from the constructor, which keeps locking short. Avoids blocking the factory.
HistoryItems
list of history items
Declaration
public List<ISoListItem> HistoryItems { get; }
Property Value
Type | Description |
---|---|
List<ISoListItem> |
Remarks
Constructor saves function for later. Function is executed during Construct call. This keeps slow list population away from the constructor, which keeps locking short. Avoids blocking the factory.
RootItems
list of root-level items (items not under any heading)
Declaration
public List<ISoListItem> RootItems { get; }
Property Value
Type | Description |
---|---|
List<ISoListItem> |
Remarks
Constructor saves function for later. Function is executed during Construct call. This keeps slow list population away from the constructor, which keeps locking short. Avoids blocking the factory.
Methods
Construct(string, string, int[], bool, string, bool)
Calls the populateFunction passed in to the constructor
Declaration
public void Construct(string listName, string additionalInfo, int[] historyIDs, bool onlyReadHistory, string searchValue, bool forceFlatList)
Parameters
Type | Name | Description |
---|---|---|
string | listName | |
string | additionalInfo | |
int[] | historyIDs | |
bool | onlyReadHistory | |
string | searchValue | |
bool | forceFlatList |
Remarks
Constructor saves function for later. Function is executed during Construct call. This keeps slow list population away from the constructor, which keeps locking short. Avoids blocking the factory.