Show / Hide Table of Contents

Interface IControllerBuilder

Interface that allows controllers to be configured

Namespace: AzureFromTheTrenches.Commanding.AspNetCore
Assembly: AzureFromTheTrenches.Commanding.AspNetCore.dll
Syntax
public interface IControllerBuilder

Methods

| Improve this Doc View Source

Controller(String, Action<IActionBuilder>)

Configure a controller with the given name and set of actions

Declaration
IControllerBuilder Controller(string controller, Action<IActionBuilder> actionBuilder)
Parameters
Type Name Description
System.String controller

The name of the controller

System.Action<IActionBuilder> actionBuilder

Builder for the actions

Returns
Type Description
IControllerBuilder

The controller builder to enable a fluent API

| Improve this Doc View Source

Controller(String, Action<IAttributeBuilder>, Action<IActionBuilder>)

Configure a controller with the given name, set of actions, and apply filter attributes

Declaration
IControllerBuilder Controller(string controller, Action<IAttributeBuilder> attributeBuilder, Action<IActionBuilder> actionBuilder)
Parameters
Type Name Description
System.String controller

The name of the controller

System.Action<IAttributeBuilder> attributeBuilder

The filter attributes to apply to the controller

System.Action<IActionBuilder> actionBuilder

Builder for the actions

Returns
Type Description
IControllerBuilder

The controller builder to enable a fluent API

| Improve this Doc View Source

Controller(String, String, Action<IActionBuilder>)

Configure a controller with the given name, set of actions, and apply filter attributes

Declaration
IControllerBuilder Controller(string controller, string route, Action<IActionBuilder> actionBuilder)
Parameters
Type Name Description
System.String controller

The name of the controller

System.String route

The route to assign to the controller - will attach the attribute [Route("...")]

System.Action<IActionBuilder> actionBuilder

Builder for the actions

Returns
Type Description
IControllerBuilder

The controller builder to enable a fluent API

| Improve this Doc View Source

Controller(String, String, Action<IAttributeBuilder>, Action<IActionBuilder>)

Configure a controller with the given name, set of actions, and apply filter attributes

Declaration
IControllerBuilder Controller(string controller, string route, Action<IAttributeBuilder> attributeBuilder, Action<IActionBuilder> actionBuilder)
Parameters
Type Name Description
System.String controller

The name of the controller

System.String route

The route to assign to the controller - will attach the attribute [Route("...")]

System.Action<IAttributeBuilder> attributeBuilder

The filter attributes to apply to the controller

System.Action<IActionBuilder> actionBuilder

Builder for the actions

Returns
Type Description
IControllerBuilder

The controller builder to enable a fluent API

  • Improve this Doc
  • View Source
Back to top Generated by DocFX