Show / Hide Table of Contents

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.

Inheritance
Object
ExternallyPopulatedList
Implements
ISoListProvider
ISoList
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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>>)

Declaration
public ExternallyPopulatedList(string listName, Func<IEnumerable<SoListItem>> populateFunction)
Parameters
Type Name Description
String listName
Func<IEnumerable<SoListItem>> populateFunction

Properties

HeadingItems

Declaration
public List<ISoListHeading> HeadingItems { get; }
Property Value
Type Description
List<ISoListHeading>

HistoryInfo

Declaration
public HistoryInfo HistoryInfo { get; }
Property Value
Type Description
HistoryInfo

HistoryItems

Declaration
public List<ISoListItem> HistoryItems { get; }
Property Value
Type Description
List<ISoListItem>

RootItems

Declaration
public List<ISoListItem> RootItems { get; }
Property Value
Type Description
List<ISoListItem>

Methods

Construct(String, String, Int32[], Boolean, String, Boolean)

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
Int32[] historyIDs
Boolean onlyReadHistory
String searchValue
Boolean forceFlatList

Implements

ISoListProvider
ISoList

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top