mirror of https://github.com/dapr/dotnet-sdk.git
docs: fix InvokeAsync example in get started guide (#333)
Add generic request type to `InvokeAsync` command. Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
This commit is contained in:
parent
7d2efdb1da
commit
9f7b2591b7
|
@ -409,7 +409,7 @@ namespace MyActorClient
|
||||||
// Create Actor Proxy instance to invoke the methods defined in the interface
|
// Create Actor Proxy instance to invoke the methods defined in the interface
|
||||||
var proxy = ActorProxy.Create(actorID, actorType);
|
var proxy = ActorProxy.Create(actorID, actorType);
|
||||||
// Need to specify the method name and response type explicitly
|
// Need to specify the method name and response type explicitly
|
||||||
var response = await proxy.InvokeAsync<string>("SetMyDataAsync", new MyData()
|
var response = await proxy.InvokeAsync<MyData, string>("SetMyDataAsync", new MyData()
|
||||||
{
|
{
|
||||||
PropertyA = "ValueA",
|
PropertyA = "ValueA",
|
||||||
PropertyB = "ValueB",
|
PropertyB = "ValueB",
|
||||||
|
|
Loading…
Reference in New Issue