Table of Contents

Method RegisterWebApiModelBinders

Namespace
Autofac.Integration.WebApi
Assembly
Autofac.Integration.WebApi.dll

RegisterWebApiModelBinders(ContainerBuilder, params Assembly[])

[Obsolete("Use the AsModelBinderForTypes() registration extension to register model binders and be sure to RegisterWebApiModelBinderProvider() in your container if you do. This method doesn't connect the model binders to the Autofac binder provider. It will be removed in a future version.")]
public static IRegistrationBuilder<object, ScanningActivatorData, DynamicRegistrationStyle> RegisterWebApiModelBinders(this ContainerBuilder builder, params Assembly[] modelBinderAssemblies)

Parameters

builder ContainerBuilder
modelBinderAssemblies Assembly[]

Returns

IRegistrationBuilder<object, ScanningActivatorData, DynamicRegistrationStyle>