Table of Contents

Class DefaultHttpControllerTypeResolver

Namespace
System.Web.Http.Dispatcher
Assembly
System.Web.Http.dll

Provides an implementation of IHttpControllerTypeResolver with no external dependencies.

public class DefaultHttpControllerTypeResolver : IHttpControllerTypeResolver
Inheritance
DefaultHttpControllerTypeResolver
Implements
Inherited Members

Constructors

DefaultHttpControllerTypeResolver()

Initializes a new instance of the DefaultHttpControllerTypeResolver class.

public DefaultHttpControllerTypeResolver()

DefaultHttpControllerTypeResolver(Predicate<Type>)

Initializes a new DefaultHttpControllerTypeResolver instance using a predicate to filter controller types.

public DefaultHttpControllerTypeResolver(Predicate<Type> predicate)

Parameters

predicate Predicate<Type>

The predicate.

Properties

IsControllerTypePredicate

Gets a value whether the resolver type is a controller type predicate.

protected Predicate<Type> IsControllerTypePredicate { get; }

Property Value

Predicate<Type>

true if the resolver type is a controller type predicate; otherwise, false.

Methods

GetControllerTypes(IAssembliesResolver)

Returns a list of controllers available for the application.

public virtual ICollection<Type> GetControllerTypes(IAssembliesResolver assembliesResolver)

Parameters

assembliesResolver IAssembliesResolver

The assemblies resolver.

Returns

ICollection<Type>

An <see cref="T:System.Collections.Generic.ICollection`1" /> of controllers.