Skip to content
Docs Try Aspire

StaticValueProvider<T> Methods

Class Methods 2 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))
{
// ...
}
}
cancellationToken CancellationToken optional
Sets the value of the provider.
public class StaticValueProvider<T>
{
public void Set(
T value)
{
// ...
}
}
value T