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