Created
March 6, 2012 12:38
-
-
Save possan/1986051 to your computer and use it in GitHub Desktop.
Overdoing it? structuremap command query separation...
This file contains hidden or 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 class ModuleRegistry : Registry | |
| { | |
| public ModuleRegistry() | |
| { | |
| For<ICommandValidator<SubmitVideoBasicsCommand>>().Use<SubmitVideoBasicsCommandValidator>(); | |
| For<ICommandHandler<SubmitVideoBasicsCommand>>().Use<SubmitVideoBasicsCommandHandler>(); | |
| For<IQueryHandler<SubmitVideoMetaQuery, SubmitVideoMetaQueryResponse>>().Use<SubmitVideoMetaQueryHandler>(); | |
| For<ICommandValidator<SubmitVideoMetaCommand>>().Use<SubmitVideoMetaCommandValidator>(); | |
| For<ICommandHandler<SubmitVideoMetaCommand>>().Use<SubmitVideoMetaCommandHandler>(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment