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