Share via


EndpointReferenceExpression.GetValueAsync Method

Definition

Overloads

Name Description
GetValueAsync(CancellationToken)

Gets the value of the property of the endpoint.

GetValueAsync(ValueProviderContext, CancellationToken)

Gets the value of the property of the endpoint.

GetValueAsync(CancellationToken)

Source:
EndpointReference.cs
Source:
EndpointReference.cs
Source:
EndpointReference.cs
Source:
EndpointReference.cs
Source:
EndpointReference.cs
Source:
EndpointReference.cs
Source:
EndpointReference.cs

Gets the value of the property of the endpoint.

public System.Threading.Tasks.ValueTask<string?> GetValueAsync(System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.ValueTask<string?> GetValueAsync(System.Threading.CancellationToken cancellationToken);
abstract member GetValueAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
override this.GetValueAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
Public Function GetValueAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of String)
Public Function GetValueAsync (cancellationToken As CancellationToken) As ValueTask(Of String)

Parameters

cancellationToken
CancellationToken

A CancellationToken.

Returns

A String containing the selected EndpointProperty value.

Implements

Exceptions

Throws when the selected EndpointProperty enumeration is not known.

Applies to

GetValueAsync(ValueProviderContext, CancellationToken)

Source:
EndpointReference.cs

Gets the value of the property of the endpoint.

public System.Threading.Tasks.ValueTask<string?> GetValueAsync(Aspire.Hosting.ApplicationModel.ValueProviderContext context, System.Threading.CancellationToken cancellationToken = default);
abstract member GetValueAsync : Aspire.Hosting.ApplicationModel.ValueProviderContext * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
override this.GetValueAsync : Aspire.Hosting.ApplicationModel.ValueProviderContext * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
Public Function GetValueAsync (context As ValueProviderContext, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of String)

Parameters

context
ValueProviderContext

The context to use when resolving the endpoint property.

cancellationToken
CancellationToken

A CancellationToken.

Returns

A String containing the selected EndpointProperty value.

Implements

Exceptions

Throws when the selected EndpointProperty enumeration is not known.

Applies to