@@ -160,7 +160,7 @@ if err := client.PublishEvent(ctx, "component-name", "topic-name", data); err !=
160
160
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:
161
161
162
162
``` go
163
- resp, err = client.InvokeMethod (ctx, " service-name " , " method-name" )
163
+ resp, err = client.InvokeMethod (ctx, " app-id " , " method-name" )
164
164
```
165
165
166
166
And to invoke a service with data:
@@ -171,7 +171,7 @@ content := &dapr.DataContent{
171
171
Data : []byte (` { "id": "a123", "value": "demo", "valid": true }` ),
172
172
}
173
173
174
- resp , err := client.InvokeMethodWithContent (ctx, " service-name " , " method-name" , content)
174
+ resp , err := client.InvokeMethodWithContent (ctx, " app-id " , " method-name" , content)
175
175
```
176
176
177
177
##### Bindings
@@ -181,7 +181,7 @@ Similarly to Service, Dapr client provides two methods to invoke an operation on
181
181
For simple, output only biding:
182
182
183
183
``` go
184
- in := &dapr.BindingInvocation { Name : " binding-name" , Operation : " operation-name" }
184
+ in := &dapr.InvokeBindingRequest { Name : " binding-name" , Operation : " operation-name" }
185
185
err = client.InvokeOutputBinding (ctx, in)
186
186
```
187
187
0 commit comments