PersonalizerClient.RewardMultiSlot Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RewardMultiSlot(String, PersonalizerRewardMultiSlotOptions, CancellationToken) |
Report reward that resulted from using the action specified in rewardActionId for the slot. |
RewardMultiSlot(String, String, Single, CancellationToken) |
Report reward that resulted from using the action specified in rewardActionId for the slot. |
RewardMultiSlot(String, PersonalizerRewardMultiSlotOptions, CancellationToken)
- Source:
- PersonalizerClient.cs
Report reward that resulted from using the action specified in rewardActionId for the slot.
public virtual Azure.Response RewardMultiSlot (string eventId, Azure.AI.Personalizer.PersonalizerRewardMultiSlotOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member RewardMultiSlot : string * Azure.AI.Personalizer.PersonalizerRewardMultiSlotOptions * System.Threading.CancellationToken -> Azure.Response
override this.RewardMultiSlot : string * Azure.AI.Personalizer.PersonalizerRewardMultiSlotOptions * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function RewardMultiSlot (eventId As String, options As PersonalizerRewardMultiSlotOptions, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- eventId
- String
The event id this reward applies to.
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
RewardMultiSlot(String, String, Single, CancellationToken)
- Source:
- PersonalizerClient.cs
Report reward that resulted from using the action specified in rewardActionId for the slot.
public virtual Azure.Response RewardMultiSlot (string eventId, string slotId, float reward, System.Threading.CancellationToken cancellationToken = default);
abstract member RewardMultiSlot : string * string * single * System.Threading.CancellationToken -> Azure.Response
override this.RewardMultiSlot : string * string * single * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function RewardMultiSlot (eventId As String, slotId As String, reward As Single, Optional cancellationToken As CancellationToken = Nothing) As 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.