You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to create a simple command handler as in the example on the README but this is giving me a compilation error due to Handle not returning anything.
public class UserRegistered : ICommandHandler<RegisterUser>
{
public void Handle(RegisterUser user) {
}
}
Versioning:
Id Version Description/Release Notes
-- ------- -------------------------
ShortBus 3.0.46-beta ShortBus is an in-process mediator with low-friction API
ShortBus.Markers 3.0.43-beta ShortBus is an in-process mediator with low-friction API
ShortBus.StructureMap 3.0.48-beta ShortBus is an in-process mediator with low-friction API
structuremap 3.0.5.130 StructureMap is a Dependency Injection / Inversion of Control tool for .Net that can be used to improve the architectural qualities of an object oriented syst...
xunit 1.9.2 xUnit.net is a developer testing framework, built to support Test Driven Development, with a design goal of extreme simplicity and alignment with framework fe...
The text was updated successfully, but these errors were encountered:
@togakangaroo Unless I dont understand the question, Commands don't return anything, as you can see Handle is void. Use a Query if you need to return something.
I am also confused. Commands should not return anything, but if a command is to save a data do the database and get a new ID, how is this new ID supposed to get back to the client if a command can´t return a value ?
I tried to create a simple command handler as in the example on the README but this is giving me a compilation error due to
Handle
not returning anything.Versioning:
The text was updated successfully, but these errors were encountered: