Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

IProvider interface

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

 A core element, the IProvider Service property provides service for marketing automation.

Properties

IProvider.Name property 

Identifies the provider. Implementation returns its unique name and it matches the name used in Views/Admin folder and the name of provider-defined in MAI.config.

  • Namespace. EPiServer.MarketingAutomationIntegration.Core
  • Assembly. EPiServer.MarketingAutomationIntegration (in EPiServer.MarketingAutomationIntegration.dll) Version: 2.2.0.9000
  • C# syntax.
    string Name { get; }
  • Property valueTypeString
  • Remarks. The name is used to load the Admin Settings Page under Views/Admin folder.

IProvider.Services property 

Gets the current services (Campaign, Profile, Score, ...) of this marketing automation provider. API calls to 3rd services are accessed through this service.

IProvider.Settings property 

Gets the current settings of this marketing automation provider.

  • Namespace. EPiServer.MarketingAutomationIntegration.Core
  • Assembly. EPiServer.MarketingAutomationIntegration (in EPiServer.MarketingAutomationIntegration.dll) Version: 2.2.0.9000
  • C# syntax.
    IProviderSettings Settings { get; }
  • Property value. Type: IProviderSettings
  • Remarks. Concrete provider casts this Settings into its own specific type.

Methods

IProvider.GetDashboardUrl method 

Gets the URL to the provider's Dashboard, which is the starting point of using this provider's services.

IProvider.GetSettingsControlPath method 

Provides a user control for setting its working data (such as username, password, access token, and so on). The MAI.Core setting page automatically loads this settings control of the active provider into the AdminMode/Config/Connect of the marketing automation page.

  • Namespace. EPiServer.MarketingAutomationIntegration.Core
  • Assembly. EPiServer.MarketingAutomationIntegration (in EPiServer.MarketingAutomationIntegration.dll) Version: 2.2.0.9000
  • C# syntax.
    string GetSettingsControlPath()
  • Return value. TypeString
    Relative path from provider path to the web user control (for example, Settings.ascx).
  • Examples. Views/Admin/MyProviderSettings.ascx

IProvider.GetWebTrackingCode method 

Gets the Web Tracking Code to inject into the ViewMode's page.

  • Namespace. EPiServer.MarketingAutomationIntegration.Core
  • Assembly. EPiServer.MarketingAutomationIntegration (in EPiServer.MarketingAutomationIntegration.dll) Version: 2.2.0.9000
  • C# syntax.
    string GetWebTrackingCode()
  • Return value. TypeString
    Web tracking code.

IProvider.Init method 

Initialize the Provider with its services. Use Init to use StructureMap to provide "sp.For<IListService>().Use<ListService>()" commands.

  • Namespace. EPiServer.MarketingAutomationIntegration.Core
  • Assembly. EPiServer.MarketingAutomationIntegration (in EPiServer.MarketingAutomationIntegration.dll) Version: 2.2.0.9000
  • C# syntax.
  • void Init(
      ServiceConfigurationContext serviceConfigurationContext
    ) 
    Parameters.
    • serviceConfigurationContext. Type: EPiServer.ServiceLocation.ServiceConfigurationContext

IProvider.IsReady method 

Indicates that this provider is ready to work.

  • Namespace. EPiServer.MarketingAutomationIntegration.Core
  • Assembly. EPiServer.MarketingAutomationIntegration (in EPiServer.MarketingAutomationIntegration.dll) Version: 2.2.0.9000
  • C# syntax.
    bool IsReady()
  • Return value. TypeBoolean
    Returns true if mandatory settings of this provider are filled in.

IProvider.ProcessXFormData method 

Implement this method to handle XFormData posting, from both MVC or WebForm app. You can use this as a main point to bring XForm data to the marketing automation service.

  • Namespace. EPiServer.MarketingAutomationIntegration.Core
  • Assembly. EPiServer.MarketingAutomationIntegration (in EPiServer.MarketingAutomationIntegration.dll) Version: 2.2.0.9000
  • C# syntax.
    void ProcessXFormData(
      Object sender,
      XFormDataEventArgs e
    )
  • Parameters.
    • sender. TypeSystem. Object
      Object
    • e. Type: XFormDataEventArgs
      Pass form data through this. You can retrieve the data as innerHtml or Xml.

IProvider.SynchronizeMailingTemplates method 

Verify whether a mailing template is waiting to be published, and send to provider.

  • Namespace. EPiServer.MarketingAutomationIntegration.Core
  • Assembly. EPiServer.MarketingAutomationIntegration (in EPiServer.MarketingAutomationIntegration.dll) Version: 2.2.0.9000
  • C# syntax.
    string SynchronizeMailingTemplates()
  • Return value. TypeString
    Message is displayed in a log entry.

Last updated: Dec 10, 2015