We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f0ff32 commit 9e4fb54Copy full SHA for 9e4fb54
README.md
@@ -29,6 +29,26 @@ public void ConfigureServices(IServiceCollection services)
29
services.AddMvc();
30
}
31
```
32
+
33
+#### Example Dependency Injection
34
+```csharp
35
+public class TestController : Controller
36
+{
37
+ private readonly IGuidelineApi _api;
38
39
+ public TestController(IGuidelineApi api)
40
+ {
41
+ _api = api;
42
+ }
43
44
+ public async Task<IActionResult> GetPostsAsync()
45
46
+ var items = await _api.GetPostsAsync();
47
+ return Json(items);
48
49
+}
50
+```
51
52
#### Add Configuration Section to the appsettings.json file (or your configuration file)
53
##### Example for development environment:
54
```json
0 commit comments