示例#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());
 }