/// <inheritdoc/> public static void ApplyTo( ApiConfiguration configuration, Type targetType) { Ensure.NotNull(configuration, "configuration"); Ensure.NotNull(targetType, "targetType"); var provider = new ConventionBasedApiModelBuilder(targetType); configuration.AddHookHandler <IModelBuilder>(provider); configuration.AddHookHandler <IModelMapper>(provider); configuration.AddHookHandler <IQueryExpressionExpander>(provider); configuration.AddHookHandler <IQueryExpressionSourcer>(provider); }
public QueryExpressionSourcer(ConventionBasedApiModelBuilder modelCache) { ModelCache = modelCache; }
public ModelMapper(ConventionBasedApiModelBuilder modelCache) { ModelCache = modelCache; }