ListService class

Version InfoThis topic applies to Episerver.ConnectForMarketingAutomation 4.0.0 and lower. For later versions, see Sample Connector - IMarketingConnector

Reference IListService implementation that manages a single IDataList for MAI integration.

  • Inheritance Hierarchy.
    System.Object
        DemoConnector.Services.ListService
  • Namespace. DemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public class ListService : IListService

Constructor 

Default constructor builds the default list and associated metadata

  • NamespaceDemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public ListService()

Methods 

ListService.GetDatabases method 

Gets list of IDataList objects representing Database instances that this connector supports.

  • NamespaceDemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public IEnumerable<IDataList> GetDatabases()
  • Return valueType: IEnumerable<IDataList>
    A list of IDatalist objects, in this case a list of one.
  • ImplementsIListService.GetDatabases()

ListService.GetFilteredListColumns method 

Gets list of columns name which belongs to specified list, filtered out some columns if neccessary. 

  • NamespaceDemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public IEnumerable<string> GetFilteredListColumns(
    	int listId
    )
    
  • Return valueType: IEnumerable<IDataList>
    A list of IDatalist objects, in this case a list of one.
  • Parameters.
  • ImplementsIListService. GetFilteredListColumns(Int32) 

ListService.GetListColumnRecords method 

Gets list of columns name which belongs to specified list.

  • NamespaceDemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public IEnumerable<KeyValuePair<string, string>> GetListColumnRecords(
      int listId
    )
  • Parameters
  • Return valueTypeIEnumerable< KeyValuePair< String, String>>
    List of columns, each column is represented by a KeyValuePair object with key is the column name and value is posible the column display name.
  • Implements. IListService.GetListColumnRecords(Int32)

ListService.GetListColumns method 

Gets list of columns name which belongs to specified list.

  • NamespaceDemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public IEnumerable<string> GetListColumns(
      int listId
    )
  • Parameters
  • Return valueTypeIEnumerable< String>
    List of columns.
  • Implements. IListService.GetListColumns(Int32)

ListService.GetLists method 

Gets lists of IDataLists which represent the Profiles.

  • NamespaceDemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public IEnumerable<IDataList> GetLists()
  • Return valueTypeIEnumerable< IDataList>
    Gets all lists. 
  • Implements. IListService.GetLists()

Last updated: Dec 10, 2015