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:
Lars Gyrup Brink Nielsen 2020-06-15 21:12:57 +02:00 committed by GitHub
parent 7d2efdb1da
commit 9f7b2591b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ namespace MyActorClient
// Create Actor Proxy instance to invoke the methods defined in the interface
var proxy = ActorProxy.Create(actorID, actorType);
// 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",
PropertyB = "ValueB",