@@ -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
255261builder .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
261267apiVersion : dapr.io/v1alpha1
@@ -272,7 +278,7 @@ spec:
272278
273279Now, 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
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
294300type: 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
302308apiVersion: dapr.io/v1alpha1
0 commit comments