Skip to content
Docs Try Aspire

EndpointNameAttribute Constructors

Class Constructors 1 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()
{
// ...
}
}