Skip to content
DocsTry Aspire
DocsTry

EndpointNameAttribute Constructors

ClassConstructors1 member
Signifies that a parameter represents an endpoint name.

Decorate String parameters representing endpoint names with this attribute, e.g.:

public static IResourceBuilder<TResource> WithCustomEndpoint<TResource>(
this IResourceBuilder<TResource> builder,
[EndpointName] string name)

public sealed class EndpointNameAttribute
{
public EndpointNameAttribute()
{
// ...
}
}