Skip to content

Commit 070b458

Browse files
authored
Merge pull request #39 from arafattehsin/master
Quick fix for the Subscription Key assignment
2 parents 3dbc651 + 8228f1b commit 070b458

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

samples/ChatbotExample/ReinforcementLearning/RLContextManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public class RLContextManager
4242
/// </value>
4343
public IList<RankedAction> CurrentPreference { get; set; }
4444

45+
public RLContextManager()
46+
{
47+
SubscriptionKey = "<Your Personalizer Service Key from Azure>";
48+
}
4549
public void GenerateRLFeatures()
4650
{
4751
var index = new Random().Next(0, 3);

samples/ChatbotExample/ReinforcementLearning/RLFeatures.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ public RLFeatures(Weather weather, DayOfWeek day)
3333
/// </value>
3434
public DayOfWeek DayOfWeek { get; private set; }
3535

36-
public Uri HostName => new Uri("https://localhost:5001");
36+
public Uri HostName => new Uri("<Personalizer Azure Service Endpoint>");
3737
}
3838
}

0 commit comments

Comments
 (0)