Browse Source

Merge branch 'master' of https://github.com/dotnetcore/CAP

master
Savorboard 3 years ago
parent
commit
af1306d2e7
2 changed files with 2 additions and 2 deletions
  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 View File

@@ -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 View File

@@ -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);



Loading…
Cancel
Save