PersonalizerClient.RewardMultiSlotAsync Method

Definition

Overloads

RewardMultiSlotAsync(String, PersonalizerRewardMultiSlotOptions, CancellationToken)

Report reward that resulted from using the action specified in rewardActionId for the slot.

RewardMultiSlotAsync(String, String, Single, CancellationToken)

Report reward that resulted from using the action specified in rewardActionId for the slot.

RewardMultiSlotAsync(String, PersonalizerRewardMultiSlotOptions, CancellationToken)

Source:
PersonalizerClient.cs

Report reward that resulted from using the action specified in rewardActionId for the slot.

public virtual System.Threading.Tasks.Task<Azure.Response> RewardMultiSlotAsync (string eventId, Azure.AI.Personalizer.PersonalizerRewardMultiSlotOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member RewardMultiSlotAsync : string * Azure.AI.Personalizer.PersonalizerRewardMultiSlotOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.RewardMultiSlotAsync : string * Azure.AI.Personalizer.PersonalizerRewardMultiSlotOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function RewardMultiSlotAsync (eventId As String, options As PersonalizerRewardMultiSlotOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

eventId
String

The event id this reward applies to.

options
PersonalizerRewardMultiSlotOptions

List of slot id and reward values. The reward should be a floating point number, typically between 0 and 1.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to

RewardMultiSlotAsync(String, String, Single, CancellationToken)

Source:
PersonalizerClient.cs

Report reward that resulted from using the action specified in rewardActionId for the slot.

public virtual System.Threading.Tasks.Task<Azure.Response> RewardMultiSlotAsync (string eventId, string slotId, float reward, System.Threading.CancellationToken cancellationToken = default);
abstract member RewardMultiSlotAsync : string * string * single * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.RewardMultiSlotAsync : string * string * single * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function RewardMultiSlotAsync (eventId As String, slotId As String, reward As Single, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

eventId
String

The event id this reward applies to.

slotId
String

Slot id for which we are sending the reward.

reward
Single

Reward to be assigned to slotId. Value should be between -1 and 1 inclusive.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to