Exemplo n.º 1
0
 public async Task Post(int id, [FromBody] CreateModel model)
 {
     await _commands.CommandAsync(new Create.Command(id, model.Name));
 }
Exemplo n.º 2
0
 public void Start()
 {
     _commands.CommandAsync(new TestCommand());
     _events.PublishAsync(new TestEvent());
     _requests.RequestAsync <TestRequest, TestResponse>(new TestRequest());
 }