/// <summary> /// Initializes a new instance of the <see cref="SingleResultSetCommandProcessor{TFilter, TResult}" /> class. /// </summary> /// <param name="deserializerResolver">The deserializer resolver.</param> /// <param name="mappings">The mappings.</param> public SingleResultSetCommandProcessor( IDeserializerResolver deserializerResolver, ICommandResultInfo <TFilter> mappings) { CommandResultInfo = mappings; CompiledMapping = deserializerResolver .ResolveDeserializer <TResult>(mappings); }
/// <summary> /// Initializes a new instance of the /// <see cref="MultipleResultSetCommandProcessor{TFilter}" /> /// class. /// </summary> /// <param name="deserializerResolver">The deserializer resolver.</param> /// <param name="commandResultInfo">The CommandBuilder result information.</param> /// <param name="resultTypes">The result types.</param> public MultipleResultSetCommandProcessor(IDeserializerResolver deserializerResolver, ICommandResultInfo <TFilter> commandResultInfo, Type[] resultTypes) { CommandResultInfo = commandResultInfo; _deserializerResolver = deserializerResolver; _mappers = resultTypes .Select(t => _deserializerResolver.ResolveDeserializer(t, commandResultInfo)) .ToArray(); }