Show me the code!
Brighter and Darker
Brighter is about Requests
Darker is about Queries
Middleware
Sending and Querying Example
[Route("{name}/new")]
[HttpPost]
public async Task<ActionResult<FindPersonsGreetings>> Post(string name, NewGreeting newGreeting)
{
await _commandProcessor.SendAsync(new AddGreeting(name, newGreeting.Greeting));
var personsGreetings = await _queryProcessor.ExecuteAsync(new FindGreetingsForPerson(name));
if (personsGreetings == null) return new NotFoundResult();
return Ok(personsGreetings);
}Handling Examples
Using an External Bus
Sending a Message to Another Process
Receiving a Message from Another Process
Configuration Example
Next Steps
Last updated
Was this helpful?
