Skip to content
Docs Try Aspire

EndpointReferenceExpression Methods

Class Methods 2 members
Represents a property expression for an endpoint reference.
GetValueAsync(CancellationToken) Section titled GetValueAsync(CancellationToken) ValueTask<string?>
Gets the value of the property of the endpoint.
public class EndpointReferenceExpression
{
public ValueTask<string?> GetValueAsync(
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
cancellationToken CancellationToken optional A Threading.CancellationToken.
ValueTask<string?> A String containing the selected EndpointProperty value.
InvalidOperationException Throws when the selected EndpointProperty enumeration is not known.
GetValueAsync(ValueProviderContext, CancellationToken) Section titled GetValueAsync(ValueProviderContext, CancellationToken) ValueTask<string?>
Gets the value of the property of the endpoint.
public class EndpointReferenceExpression
{
public ValueTask<string?> GetValueAsync(
ValueProviderContext context,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
context ValueProviderContext The context to use when resolving the endpoint property.
cancellationToken CancellationToken optional A Threading.CancellationToken.
ValueTask<string?> A String containing the selected EndpointProperty value.
InvalidOperationException Throws when the selected EndpointProperty enumeration is not known.