Quellcode durchsuchen

Fix attribute in Quick Start (#802)

Change from `FromService` to `FromServices`.
Ref:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.fromservicesattribute
master
Martin Andersen vor 3 Jahren
committed by GitHub
Ursprung
Commit
91c96a6dbe
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +1
    -1
      docs/content/user-guide/en/getting-started/quick-start.md
  2. +1
    -1
      docs/content/user-guide/zh/getting-started/quick-start.md

+ 1
- 1
docs/content/user-guide/en/getting-started/quick-start.md Datei anzeigen

@@ -36,7 +36,7 @@ public void ConfigureServices(IServiceCollection services)
public class PublishController : Controller
{
[Route("~/send")]
public IActionResult SendMessage([FromService]ICapPublisher capBus)
public IActionResult SendMessage([FromServices]ICapPublisher capBus)
{
capBus.Publish("test.show.time", DateTime.Now);



+ 1
- 1
docs/content/user-guide/zh/getting-started/quick-start.md Datei anzeigen

@@ -36,7 +36,7 @@ public void ConfigureServices(IServiceCollection services)
public class PublishController : Controller
{
[Route("~/send")]
public IActionResult SendMessage([FromService]ICapPublisher capBus)
public IActionResult SendMessage([FromServices]ICapPublisher capBus)
{
capBus.Publish("test.show.time", DateTime.Now);



Laden…
Abbrechen
Speichern