Skip to content

Commit 997b4d1

Browse files
committed
Fix yaml name
1 parent b1a5252 commit 997b4d1

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

content/courses/dapr-aspire/state-management.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ public async Task<IActionResult> Read(int id)
223223
}
224224
```
225225

226+
BTW, Product can be a simple `record` / `POCO`
227+
228+
```cs
229+
public record Product(int Id, string Name, decimal Price);
230+
```
231+
226232
---
227233

228234
### 3. Configure State Store in AppHost
@@ -255,7 +261,7 @@ var servicea = builder
255261
builder.Build().Run();
256262
```
257263

258-
You’ll need a components/pubsub.yaml file with the following content:
264+
You’ll need a `components/statestore.yaml` file with the following content:
259265

260266
```yaml
261267
apiVersion: dapr.io/v1alpha1
@@ -272,7 +278,7 @@ spec:
272278

273279
Now, when you run your setup, you should see Aspire dashboard.
274280

275-
You can visit the `ServiceA`'s Swagger endpoint, with `/swagger` at the end of the url
281+
You can visit the `ServiceA`'s Swagger endpoint, with `/swagger` at the end of the URL
276282

277283
![Aspire Dashboard](https://i.ibb.co/rRYSxnwd/state-management-aspire-dashboard.png)
278284

@@ -288,15 +294,15 @@ When you call `/read` endpoint, it gets back the state from `in-memory`
288294

289295
## In-Memory State Store
290296

291-
When I say, it writes `in-memory`, that's because, how it's configured in the `pubsub/yaml`
297+
When I say, it writes `in-memory`, that's because, how it's configured in the `statestore.yaml`
292298

293299
```yaml
294300
type: state.in-memory
295301
```
296302

297303
## Redis State Store
298304

299-
Now if you want to see the real power of abstraction, stop the debugger, replace the contents of `components/pubsub.yaml` with below content
305+
Now if you want to see the real power of abstraction, stop the debugger, replace the contents of `components/statestore.yaml` with below content
300306

301307
```yaml
302308
apiVersion: dapr.io/v1alpha1

0 commit comments

Comments
 (0)