ScoringService class

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

 Interface for working with provider scoring.

  • Inheritance hierarchy.
    System.Object
      DemoConnector.Services.ScoringService
  • Namespace. DemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public class ScoringService : IScoringService

Constructor 

Initializes a new instance of the ScoringService class.

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

Methods

ScoringService.GetAllScoringModels method 

Return a collection of ScoringModel objects.

  • Namespace. DemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public IEnumerable<ScoringModel> GetAllScoringModels()
  • Return value. TypeIEnumerable< ScoringModel>
    List of all scoring models.
  • Implements. IScoringService.GetAllScoringModels()
  • Remarks. This demo returns a list that contains a single scoring model.

ScoringService.GetAllScoringTypes method 

Return the list of scoring types.

ScoringService.GetScoringForProfile method 

Return a collection of ScoringModelValues for the modelId.

  • Namespace. DemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public IEnumerable<ScoringModelValues> GetScoringForProfile(
      Profile profile,
      int modelId
    )
  • Parameters.
    • profile. Type: Profile
      Profile type to filter by.
    • modelId. TypeSystem. Int32
      ModelID to filter by.
  • Return value. TypeIEnumerable< ScoringModelValues>
    The scoring profile that matches the parameter filters.
  • Implements. IScoringService.GetScoringForProfile(Profile, Int32)
  • Remarks. Because there is only one modelId, always return the same collection.

ScoringService.GetScoringRank method 

Returns the scoring rank collection.

  • Namespace. DemoConnector.Services
  • Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
  • C# syntax.
    public IEnumerable<KeyValuePair<string, string>> GetScoringRank(
      string scoringModelId
    )
  • Parameters.
    • scoringModelId. TypeSystem. String
      Scoring model ID to filter against.
  • Return value. TypeIEnumerable< KeyValuePair< String, String>>
    List of Scoring Ranks.
  • Implements. IScoringService.GetScoringRank(String)
  • Remarks. Throw NotImplementedException if your connector does not support scoring ranks

Last updated: Dec 10, 2015