static private RegisterCommandValidator ( |
||
typeToRegister | ||
validatorRegistry | Type>.IDictionary | |
리턴 | void |
void RegisterCommandValidator(Type typeToRegister, IDictionary<Type, Type> validatorRegistry)
{
var commandType = GetCommandType(typeToRegister);
if (commandType == null ||
commandType.IsInterface ||
validatorRegistry.ContainsKey(commandType))
return;
validatorRegistry.Add(commandType, typeToRegister);
}