Skip to content
Docs Try Aspire

ParameterResource Methods

Class Methods 2 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)
{
// ...
}
}
cancellationToken CancellationToken The 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)
{
// ...
}
}
cancellationToken CancellationToken