From 91c96a6dbe31fc570f4f31371e4e203cc85a5b44 Mon Sep 17 00:00:00 2001 From: Martin Andersen Date: Fri, 19 Mar 2021 02:46:27 +0100 Subject: [PATCH] Fix attribute in Quick Start (#802) Change from `FromService` to `FromServices`. Ref: https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.fromservicesattribute --- docs/content/user-guide/en/getting-started/quick-start.md | 2 +- docs/content/user-guide/zh/getting-started/quick-start.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/user-guide/en/getting-started/quick-start.md b/docs/content/user-guide/en/getting-started/quick-start.md index eb620f0..ef41462 100644 --- a/docs/content/user-guide/en/getting-started/quick-start.md +++ b/docs/content/user-guide/en/getting-started/quick-start.md @@ -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); diff --git a/docs/content/user-guide/zh/getting-started/quick-start.md b/docs/content/user-guide/zh/getting-started/quick-start.md index 47f80c0..ec8eae0 100644 --- a/docs/content/user-guide/zh/getting-started/quick-start.md +++ b/docs/content/user-guide/zh/getting-started/quick-start.md @@ -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);