RequestDelegateRouteBuilderExtensions Class¶
- Namespace
Microsoft.AspNetCore.Routing- Assemblies
- Microsoft.AspNetCore.Routing
Syntax¶
public class RequestDelegateRouteBuilderExtensions
-
class
Microsoft.AspNetCore.Routing.RequestDelegateRouteBuilderExtensions
Methods¶
-
MapDelete(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, Microsoft.AspNetCore.Http.RequestDelegate)¶ Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderthat only matches HTTP DELETE requests for the given <em>template</em>, and <em>handler</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - template (System.String) – The route template.
- handler (Microsoft.AspNetCore.Http.RequestDelegate) – The
Microsoft.AspNetCore.Http.RequestDelegateroute handler.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapDelete(this IRouteBuilder builder, string template, RequestDelegate handler)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapDelete(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderthat only matches HTTP DELETE requests for the given <em>template</em>, and <em>action</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - template (System.String) – The route template.
- action (System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) – The action to apply to the
Microsoft.AspNetCore.Builder.IApplicationBuilder.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapDelete(this IRouteBuilder builder, string template, Action<IApplicationBuilder> action)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapGet(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, Microsoft.AspNetCore.Http.RequestDelegate)¶ Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderthat only matches HTTP GET requests for the given <em>template</em>, and <em>handler</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - template (System.String) – The route template.
- handler (Microsoft.AspNetCore.Http.RequestDelegate) – The
Microsoft.AspNetCore.Http.RequestDelegateroute handler.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapGet(this IRouteBuilder builder, string template, RequestDelegate handler)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapGet(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderthat only matches HTTP GET requests for the given <em>template</em>, and <em>action</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - template (System.String) – The route template.
- action (System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) – The action to apply to the
Microsoft.AspNetCore.Builder.IApplicationBuilder.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapGet(this IRouteBuilder builder, string template, Action<IApplicationBuilder> action)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapPost(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, Microsoft.AspNetCore.Http.RequestDelegate)¶ Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderthat only matches HTTP POST requests for the given <em>template</em>, and <em>handler</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - template (System.String) – The route template.
- handler (Microsoft.AspNetCore.Http.RequestDelegate) – The
Microsoft.AspNetCore.Http.RequestDelegateroute handler.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapPost(this IRouteBuilder builder, string template, RequestDelegate handler)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapPost(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderthat only matches HTTP POST requests for the given <em>template</em>, and <em>action</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - template (System.String) – The route template.
- action (System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) – The action to apply to the
Microsoft.AspNetCore.Builder.IApplicationBuilder.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapPost(this IRouteBuilder builder, string template, Action<IApplicationBuilder> action)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapPut(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, Microsoft.AspNetCore.Http.RequestDelegate)¶ Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderthat only matches HTTP PUT requests for the given <em>template</em>, and <em>handler</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - template (System.String) – The route template.
- handler (Microsoft.AspNetCore.Http.RequestDelegate) – The
Microsoft.AspNetCore.Http.RequestDelegateroute handler.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapPut(this IRouteBuilder builder, string template, RequestDelegate handler)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapPut(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderthat only matches HTTP PUT requests for the given <em>template</em>, and <em>action</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - template (System.String) – The route template.
- action (System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) – The action to apply to the
Microsoft.AspNetCore.Builder.IApplicationBuilder.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapPut(this IRouteBuilder builder, string template, Action<IApplicationBuilder> action)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapRoute(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, Microsoft.AspNetCore.Http.RequestDelegate)¶ Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderfor the given <em>template</em>, and <em>handler</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - template (System.String) – The route template.
- handler (Microsoft.AspNetCore.Http.RequestDelegate) – The
Microsoft.AspNetCore.Http.RequestDelegateroute handler.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapRoute(this IRouteBuilder builder, string template, RequestDelegate handler)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapRoute(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderfor the given <em>template</em>, and <em>action</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - template (System.String) – The route template.
- action (System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) – The action to apply to the
Microsoft.AspNetCore.Builder.IApplicationBuilder.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapRoute(this IRouteBuilder builder, string template, Action<IApplicationBuilder> action)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapVerb(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.String, Microsoft.AspNetCore.Http.RequestDelegate)¶ Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderthat only matches HTTP requests for the given <em>verb</em>, <em>template</em>, and <em>handler</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - verb (System.String) – The HTTP verb allowed by the route.
- template (System.String) – The route template.
- handler (Microsoft.AspNetCore.Http.RequestDelegate) – The
Microsoft.AspNetCore.Http.RequestDelegateroute handler.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapVerb(this IRouteBuilder builder, string verb, string template, RequestDelegate handler)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-
MapVerb(Microsoft.AspNetCore.Routing.IRouteBuilder, System.String, System.String, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) Adds a route to the
Microsoft.AspNetCore.Routing.IRouteBuilderthat only matches HTTP requests for the given <em>verb</em>, <em>template</em>, and <em>action</em>.Arguments: - builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
Microsoft.AspNetCore.Routing.IRouteBuilder. - verb (System.String) – The HTTP verb allowed by the route.
- template (System.String) – The route template.
- action (System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>) – The action to apply to the
Microsoft.AspNetCore.Builder.IApplicationBuilder.
Return type: Returns: A reference to the <em>builder</em> after this operation has completed.
public static IRouteBuilder MapVerb(this IRouteBuilder builder, string verb, string template, Action<IApplicationBuilder> action)
- builder (Microsoft.AspNetCore.Routing.IRouteBuilder) – The
-