Share via


ParameterResource.GetValueAsync Method

Definition

Overloads

GetValueAsync(CancellationToken)

Gets the value of the parameter asynchronously, waiting if necessary for the value to be set.

GetValueAsync(ValueProviderContext, CancellationToken)

Gets the value of the parameter asynchronously, waiting if necessary for the value to be set.

GetValueAsync(CancellationToken)

Source:
ParameterResource.cs
Source:
ParameterResource.cs
Source:
ParameterResource.cs

Gets the value of the parameter asynchronously, waiting if necessary for the value to be set.

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 (cancellationToken As CancellationToken) As ValueTask(Of String)

Parameters

cancellationToken
CancellationToken

The cancellation token to observe while waiting for the value.

Returns

A task that represents the asynchronous operation, containing the value of the parameter.

Implements

Applies to

GetValueAsync(ValueProviderContext, CancellationToken)

Source:
ParameterResource.cs

Gets the value of the parameter asynchronously, waiting if necessary for the value to be set.

public System.Threading.Tasks.ValueTask<string?> GetValueAsync(Aspire.Hosting.ApplicationModel.ValueProviderContext _, System.Threading.CancellationToken cancellationToken);
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 (_ As ValueProviderContext, cancellationToken As CancellationToken) As ValueTask(Of String)

Parameters

cancellationToken
CancellationToken

Returns

Implements

Applies to