Table of Contents

Interface IControllerConfiguration

Namespace
System.Web.Http.Controllers
Assembly
System.Web.Http.dll

If a controller is decorated with an attribute with this interface, then it gets invoked to initialize the controller settings.

public interface IControllerConfiguration

Methods

Initialize(HttpControllerSettings, HttpControllerDescriptor)

Callback invoked to set per-controller overrides for this controllerDescriptor.

void Initialize(HttpControllerSettings controllerSettings, HttpControllerDescriptor controllerDescriptor)

Parameters

controllerSettings HttpControllerSettings

The controller settings to initialize.

controllerDescriptor HttpControllerDescriptor

The controller descriptor. Note that the HttpControllerDescriptor can be associated with the derived controller type given that IControllerConfiguration is inherited.