예제 #1
0
 public async Task Post(int id, [FromBody] CreateModel model)
 {
     await _commands.CommandAsync(new Create.Command(id, model.Name));
 }
예제 #2
0
파일: App.cs 프로젝트: PeterKneale/Envoy
 public void Start()
 {
     _commands.CommandAsync(new TestCommand());
     _events.PublishAsync(new TestEvent());
     _requests.RequestAsync <TestRequest, TestResponse>(new TestRequest());
 }