Skip to content
DocsTry Aspire
DocsTry

ParameterResource Methods

ClassMethods2 members
Represents a parameter resource.
GetValueAsync(CancellationToken)Section titled GetValueAsync(CancellationToken)ValueTask<string?>
Gets the value of the parameter asynchronously, waiting if necessary for the value to be set.
public class ParameterResource
{
public ValueTask<string?> GetValueAsync(
CancellationToken cancellationToken)
{
// ...
}
}
cancellationTokenCancellationTokenThe cancellation token to observe while waiting for the value.
ValueTask<string?>A task that represents the asynchronous operation, containing the value of the parameter.
GetValueAsync(ValueProviderContext, CancellationToken)Section titled GetValueAsync(ValueProviderContext, CancellationToken)ValueTask<string?>
Gets the value of the parameter asynchronously, waiting if necessary for the value to be set.
public class ParameterResource
{
public ValueTask<string?> GetValueAsync(
ValueProviderContext _,
CancellationToken cancellationToken)
{
// ...
}
}
cancellationTokenCancellationToken