ListService class

Version Info: This 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

  • Namespace. DemoConnector.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.

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

ListService.GetFilteredListColumns method 

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

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

ListService.GetListColumnRecords method 

Gets list of columns name which belongs to specified list.

  • Namespace. DemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public IEnumerable<KeyValuePair<string, string>> GetListColumnRecords(
      int listId
    )
  • Parameters. 
  • Return value. Type: IEnumerable< 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.

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

ListService.GetLists method 

Gets lists of IDataLists which represent the Profiles.

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

Last updated: Dec 10, 2015