Skip to content

Commit

Permalink
change statekey
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongguang Zhu authored and Yongguang Zhu committed Dec 15, 2020
1 parent e06a5b9 commit 71e82b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions StateManagement/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Program
{
static string daprPort = Environment.GetEnvironmentVariable("DAPR_HTTP_PORT") ?? "3500";
const string stateStoreName = "statestore";//default state store name
const string stateKey = "order";
const string stateKey = "order-17";
static string stateUrl = $"http://localhost:{daprPort}/v1.0/state/{stateStoreName}";

static async Task Main(string[] args)
Expand All @@ -25,11 +25,11 @@ static async Task Main(string[] args)
{
new
{
key="order",
value=new Order
key = stateKey,
value = new Order
{
Id=17,
Amount=1
Id = 17,
Amount = 1
}
}
};
Expand Down

0 comments on commit 71e82b8

Please sign in to comment.