ProgramService class
Version Info: This topic applies to Episerver.ConnectForMarketingAutomation 4.0.0 and lower. For later versions, see Sample Connector - IMarketingConnector.
Interface for working with provider programs.
- Inheritance hierarchy.
System.Object DemoConnector.Services.ProgramService
- Namespace. DemoConnector.Services
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- C# syntax.
public class ProgramService : IProgramService
Constructor
Initializes a new instance of the ProgramService class
- Namespace. DemoConnector.Services
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- C# syntax.
public ProgramService()
Methods
ProgramService.CreateProgram method
Implement this method if your connector can create program objects on the end point.
- Namespace. DemoConnector.Services
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- C# syntax.
public void CreateProgram( IProgram newProgram )
- Parameters.
- newProgram. Type: IProgram
New program to create.
- newProgram. Type: IProgram
- Implements. IProgramService.CreateProgram(IProgram)
- Remarks. The MAI framework never calls this method, it is supplied as part of the interface for convience only, it is up to your implementation to decide to implement and call it or not.
ProgramService.GetAllPrograms method
Not called by the MAI Framework.
- Namespace. DemoConnector.Services
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- C# syntax.
public IEnumerable<IProgram> GetAllPrograms()
- Return value. Type: IEnumerable< IProgram>
List of Programs - Implements. IProgramService.GetAllPrograms()
ProgramService.GetProgramsByProfileAndStatus method
Returns a list of IInProgram objects which describe a Program
- Namespace. DemoConnector.Services
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- C# syntax.
public IEnumerable<IInProgram> GetProgramsByProfileAndStatus( Profile profile, ProgramStatus status )
- Parameters.
- profile. Type: Profile
Filter programs by their profile. - status. Type: EPiServer.MarketingAutomationIntegration.Core.Enums.ProgramStatus
Filter programs by their Active/Inactive state.
- profile. Type: Profile
- Return value. Type: IEnumerable< IInProgram>
List of Programs - Implements.IProgramService.GetProgramsByProfileAndStatus(Profile, ProgramStatus)
- Remarks. Throw NotImplementedException if your connector will not support programs.
ProgramService.GetProgramsByStatus method
Returns a list of Programs for the visitor group criteria page.
- Namespace. DemoConnector.Services
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- C# syntax.
public IEnumerable<IProgram> GetProgramsByStatus( ProgramStatus status )
- Parameters.
- status. Type: EPiServer.MarketingAutomationIntegration.Core.Enums.ProgramStatus
Filter programs by their Active/Inactive state.
- status. Type: EPiServer.MarketingAutomationIntegration.Core.Enums.ProgramStatus
- Return value. Type: IEnumerable< IProgram>
List of Programs - Implements. IProgramService.GetProgramsByStatus(ProgramStatus)
Last updated: Dec 10, 2015