Skip to content

Commit

Permalink
fix (dapr#1329)
Browse files Browse the repository at this point in the history
Signed-off-by: Hannah Hunter <hannahhunter@microsoft.com>
Signed-off-by: Manuel Menegazzo <manuel.menegazzo@outlook.com>
  • Loading branch information
hhunter-ms authored and m3nax committed Sep 3, 2024
1 parent fe674e8 commit a51683b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions daprdocs/content/en/dotnet-sdk-docs/dotnet-client/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Console.WriteLine("Returned: id:{0} | Balance:{1}", account.Id, account.Balance)

#### gRPC
You can use the `DaprClient` to invoke your services over gRPC.
{{% codetab %}}

```csharp
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(20));
var invoker = DaprClient.CreateInvocationInvoker(appId: myAppId, daprEndpoint: serviceEndpoint);
Expand All @@ -67,8 +67,6 @@ await client.MyMethodAsync(new Empty(), options);

Assert.Equal(StatusCode.DeadlineExceeded, ex.StatusCode);
```
{{% /codetab %}}


- For a full guide on service invocation visit [How-To: Invoke a service]({{< ref howto-invoke-discover-services.md >}}).

Expand Down Expand Up @@ -162,7 +160,7 @@ var secrets = await client.GetSecretAsync("mysecretstore", "key-value-pair-secre
Console.WriteLine($"Got secret keys: {string.Join(", ", secrets.Keys)}");
```

{{% / codetab %}}
{{% /codetab %}}

{{% codetab %}}

Expand Down

0 comments on commit a51683b

Please sign in to comment.