Console Project code snippet incorrectly formatted on the Getting started with Dapr client .NET SDK docs
- Dominant language
- SCSS
- Stars
- 1k
- Forks
- 794
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 7
Description
**Describe the issue**
The following code snippet is missing the correct code block formatting.
**URL of the docs**
https://docs.dapr.io/developing-applications/sdks/dotnet/dotnet-client/
**Expected content**
This block of code should be formatted as follows:
```csharp
using Microsoft.Extensins.Hosting; using Microsoft.Extensions.DependencyInjection;
var builder = Host.CreateApplicationBuilder(args); builder.Services.AddDaprClient(); var app = builder.Build();
using var scope = app.Services.CreateScope(); var client = scope.ServiceProvider.GetRequiredService();
// Invokes a POST method named “deposit” that takes input of type “Transaction” var data = new { id = “17”, amount = 99m }; var account = await client.InvokeMethodAsync(“routing”, “deposit”, data, cancellationToken); Console.WriteLine(“Returned: id:{0} | Balance:{1}”, account.Id, account.Balance);
```
**Screenshots**
See above.
**Additional context**
N/A
Contributor guide
Research direction
Open the linked .NET client documentation page and locate the Console Project code snippet under the Getting started section. Compare its rendered formatting with the issue’s expected csharp fenced block, update the documentation source accordingly, and verify that the page renders the snippet as a formatted code block.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100