Created
December 20, 2013 14:58
-
-
Save jbogard/8055910 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public sealed class UnitType | |
{ | |
public static readonly UnitType Default = new UnitType(); | |
private UnitType() {} | |
} | |
public abstract class CommandHandler<TMessage> | |
: ICommandHandler<TMessage, UnitType> | |
where TMessage : ICommand | |
{ | |
public UnitType Handle(TMessage message) | |
{ | |
HandleCore(message); | |
return UnitType.Default; | |
} | |
protected abstract void HandleCore(TMessage message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment