Endpoint(RequestDelegate, EndpointMetadataCollection, String) Constructor

Definition

Creates a new instance of Endpoint.

C#
public Endpoint (Microsoft.AspNetCore.Http.RequestDelegate requestDelegate, Microsoft.AspNetCore.Http.EndpointMetadataCollection metadata, string displayName);
C#
public Endpoint (Microsoft.AspNetCore.Http.RequestDelegate requestDelegate, Microsoft.AspNetCore.Http.EndpointMetadataCollection? metadata, string? displayName);
C#
public Endpoint (Microsoft.AspNetCore.Http.RequestDelegate? requestDelegate, Microsoft.AspNetCore.Http.EndpointMetadataCollection? metadata, string? displayName);

Parameters

requestDelegate
RequestDelegate

The delegate used to process requests for the endpoint.

metadata
EndpointMetadataCollection

The endpoint EndpointMetadataCollection. May be null.

displayName
String

The informational display name of the endpoint. May be null.

Applies to

Tuote Versiot
ASP.NET Core 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0