ContentSelectionContext Constructor
Initializes a new instance of the ContentSelectionContext class.
Namespace: Microsoft.CommerceServer.Runtime.Targeting
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
selectionPipeline As ContentSelectionPipeline, _
eventPipeline As ContentSelectionPipeline, _
cacheName As String, _
redirectUrl As String, _
expressionEvaluator As ExpressionEvaluator, _
debugContext As DebugContext _
)
'Usage
Dim name As String
Dim selectionPipeline As ContentSelectionPipeline
Dim eventPipeline As ContentSelectionPipeline
Dim cacheName As String
Dim redirectUrl As String
Dim expressionEvaluator As ExpressionEvaluator
Dim debugContext As DebugContext
Dim instance As New ContentSelectionContext(name, selectionPipeline, _
eventPipeline, cacheName, redirectUrl, _
expressionEvaluator, debugContext)
public ContentSelectionContext(
string name,
ContentSelectionPipeline selectionPipeline,
ContentSelectionPipeline eventPipeline,
string cacheName,
string redirectUrl,
ExpressionEvaluator expressionEvaluator,
DebugContext debugContext
)
public:
ContentSelectionContext(
String^ name,
ContentSelectionPipeline^ selectionPipeline,
ContentSelectionPipeline^ eventPipeline,
String^ cacheName,
String^ redirectUrl,
ExpressionEvaluator^ expressionEvaluator,
DebugContext^ debugContext
)
public function ContentSelectionContext(
name : String,
selectionPipeline : ContentSelectionPipeline,
eventPipeline : ContentSelectionPipeline,
cacheName : String,
redirectUrl : String,
expressionEvaluator : ExpressionEvaluator,
debugContext : DebugContext
)
Parameters
- name
Type: System..::.String
Name of the ContentSelectionContext. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
- selectionPipeline
Type: Microsoft.CommerceServer.Runtime.Pipelines..::.ContentSelectionPipeline
Content Selection Pipeline. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
- eventPipeline
Type: Microsoft.CommerceServer.Runtime.Pipelines..::.ContentSelectionPipeline
Event Recording Pipeline. May be nullNothingnullptra null reference (Nothing in Visual Basic).
- cacheName
Type: System..::.String
Name of the Cache that contains content for this selection application. May be nullNothingnullptra null reference (Nothing in Visual Basic).
- redirectUrl
Type: System..::.String
Name of the Url to send events through for recording. May be nullNothingnullptra null reference (Nothing in Visual Basic).
- expressionEvaluator
Type: Microsoft.CommerceServer.Runtime.Targeting..::.ExpressionEvaluator
ExpressionEvaluator instance. May be nullNothingnullptra null reference (Nothing in Visual Basic).
- debugContext
Type: Microsoft.CommerceServer.Runtime.Diagnostics..::.DebugContext
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Any of the required arguments were passed as nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
A ContentSelectionContext is a collection of name-value pairs.
Represents an application context for CSF (ContentSelectionFramework) content selection. For example, advertising and discounts each have their own ContentSelectionContext to specify things like the pipeline and cache that should be used by the ContentSelector object.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.