ScoringService 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 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. Type: IEnumerable< 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.
- Namespace. DemoConnector.Services
- Assembly. DemoConnector (in DemoConnector.dll) Version: 1.0.0.0
- C# syntax.
public IEnumerable<KeyValuePair<string, string>> GetAllScoringTypes()
- Return value. Type: IEnumerable< KeyValuePair< String, String>>
List of all scoring types. - Implements. IScoringService.GetAllScoringTypes()
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. Type: System. Int32
ModelID to filter by.
- profile. Type: Profile
- Return value. Type: IEnumerable< 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. Type: System. String
Scoring model ID to filter against.
- scoringModelId. Type: System. String
- Return value. Type: IEnumerable< 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