Skip to content
DocsTry Aspire
DocsTry

StaticValueProvider<T> Methods

ClassMethods2 members
A static value provider that returns a fixed value once it's been set.
GetValueAsync(CancellationToken)Section titled GetValueAsync(CancellationToken)ValueTask<string?>
public class StaticValueProvider<T>
{
public ValueTask<string?> GetValueAsync(
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
cancellationTokenCancellationTokenoptional
Sets the value of the provider.
public class StaticValueProvider<T>
{
public void Set(
T value)
{
// ...
}
}
valueT