public IDisposable RegisterCommandHandler <Command, CommandHandler>(string messageChannelIdentifierCode) where CommandHandler : ICommandHandler <Command> { ChannelIdentifier messageChannelIdentifier = _componentChannelIdentifierRepository.GetChannelIdentifierFor(messageChannelIdentifierCode); return(_channelProvider.RegisterCommandHandler <Command, CommandHandler>(messageChannelIdentifier, _iocLifetimeScope)); }