IControllerFactory Interface

Summary

Provides methods for creation and disposal of controllers.

Syntax

public interface IControllerFactory

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.IControllerFactory

Methods

CreateController(Microsoft.AspNet.Mvc.ActionContext)

Creates a new controller for the specified <paramref name=”actionContext” />.

Arguments:
Return type:

System.Object

Returns:

The controller.

object CreateController(ActionContext actionContext)
ReleaseController(System.Object)

Releases a controller instance.

Arguments:
  • controller (System.Object) – The controller.
void ReleaseController(object controller)