Readme cleanup

Signed-off-by: Paul Yuknewicz <paulyuk@Pauls-MBP-2.lan>
This commit is contained in:
Paul Yuknewicz 2023-02-01 22:59:20 -08:00
parent 96d03bbf29
commit fb7852ac49
2 changed files with 8 additions and 4 deletions

View File

@ -6,9 +6,13 @@ Visit [this](https://docs.dapr.io/developing-applications/building-blocks/actors
> **Note:** This example leverages the Dapr SDK.
This quickstart includes one service:
This quickstart includes three services and some common interfaces:
- .NET/C# service `SmartDetectorActor`
- .NET/C# service `SmokeDetectorActor:1`
- .NET/C# service `SmokeDetectorActor:2`
- .NET/C# service `ControllerActor:singleton`
- .NET/C# interfaces `ISmartDevice`, `IController`
- .NET/C# inferface data type `SmartDeviceData`
### Run C# SmartDetectorActor service with Dapr
@ -76,7 +80,7 @@ Got response: Success
Calling GetDataAsync on SmokeDetectorActor:2...
Got response: Success
Smart device state: Name: Bedroom, Status: Ready, Battery: 98.0, Temperature: 72.0,Location: Bedroom, FirmwareVersion: 1.1, SerialNo: ABCDEFG2, MACAddress: 50-3A-32-AB-75-DF, LastUpdate: 2/1/2023 10:38:27 PM
Calling GetAverageTemperature on ControllerActor:controller-singleton...
Calling GetAverageTemperature on ControllerActor:singleton...
Got response: 70.0
```
<!-- END_STEP -->

View File

@ -67,7 +67,7 @@ class Program
Console.WriteLine($"Smart device state: {savedData.ToString()}");
// Show aggregates using controller together with smart devices
actorId = new ActorId("controller-singleton");
actorId = new ActorId("singleton");
actorType = "ControllerActor";
var proxyController = ActorProxy.Create<IController>(actorId, actorType);