Skip to content
DocsTry Aspire
DocsTry

EndpointReferenceExpression Methods

ClassMethods2 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))
{
// ...
}
}
cancellationTokenCancellationTokenoptionalA Threading.CancellationToken.
ValueTask<string?>A String containing the selected EndpointProperty value.
InvalidOperationExceptionThrows 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))
{
// ...
}
}
contextValueProviderContextThe context to use when resolving the endpoint property.
cancellationTokenCancellationTokenoptionalA Threading.CancellationToken.
ValueTask<string?>A String containing the selected EndpointProperty value.
InvalidOperationExceptionThrows when the selected EndpointProperty enumeration is not known.