Skip to content

Commit 8c4be53

Browse files
committed
readme updates
1 parent 508dceb commit 8c4be53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ if err := client.PublishEvent(ctx, "component-name", "topic-name", data); err !=
160160
To invoke a specific method on another service running with Dapr sidecar, the Dapr client provides two options. To invoke a service without any data:
161161

162162
```go
163-
resp, err = client.InvokeMethod(ctx, "service-name", "method-name")
163+
resp, err = client.InvokeMethod(ctx, "app-id", "method-name")
164164
```
165165

166166
And to invoke a service with data:
@@ -171,7 +171,7 @@ content := &dapr.DataContent{
171171
Data: []byte(`{ "id": "a123", "value": "demo", "valid": true }`),
172172
}
173173

174-
resp, err := client.InvokeMethodWithContent(ctx, "service-name", "method-name", content)
174+
resp, err := client.InvokeMethodWithContent(ctx, "app-id", "method-name", content)
175175
```
176176

177177
##### Bindings
@@ -181,7 +181,7 @@ Similarly to Service, Dapr client provides two methods to invoke an operation on
181181
For simple, output only biding:
182182

183183
```go
184-
in := &dapr.BindingInvocation{ Name: "binding-name", Operation: "operation-name" }
184+
in := &dapr.InvokeBindingRequest{ Name: "binding-name", Operation: "operation-name" }
185185
err = client.InvokeOutputBinding(ctx, in)
186186
```
187187

0 commit comments

Comments
 (0)