public class ModuleRegistry : Registry


  1. {
  2.   public ModuleRegistry()
  3.   {
  4.      For<ICommandValidator<SubmitVideoBasicsCommand>>().Use<SubmitVideoBasicsCommandValidator>();
  5.      For<ICommandHandler<SubmitVideoBasicsCommand>>().Use<SubmitVideoBasicsCommandHandler>();
  6.      For<IQueryHandler<SubmitVideoMetaQuery, SubmitVideoMetaQueryResponse>>().Use<SubmitVideoMetaQueryHandler>();
  7.      For<ICommandValidator<SubmitVideoMetaCommand>>().Use<SubmitVideoMetaCommandValidator>();
  8.      For<ICommandHandler<SubmitVideoMetaCommand>>().Use<SubmitVideoMetaCommandHandler>();
  9.   }
  10. }


Learn More :