You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daprdocs/content/en/js-sdk-docs/js-actors/_index.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,30 +21,30 @@ The actor interface defines the contract that is shared between the actor implem
21
21
22
22
```javascript
23
23
exportdefaultinterface ActorSayInterface {
24
-
sayString(msg: string): string;
24
+
say(msg: string): string;
25
25
}
26
26
```
27
27
28
28
## Actor Implementation
29
-
An actor service hosts the virtual actor. It defines a class by extending the base type Actor and implements the interfaces defined in the actor interface.
29
+
An actor implementation defines a class by extending the base type `AbstractActor` and implements the interfaces defined in the actor interface.
An actor client contains the implementation of the actor client which calls the actor methods defined in the actor interface.
43
+
Use the DaprServer package to create your actors bindings, which will initalize and register your actors. After Actors are registered, use the DaprClient to invoke methods on an actor. The will client call the actor methods defined in the actor interface.
0 commit comments