IValueProvider.GetValueAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetValueAsync(CancellationToken) |
Gets the value for use as an environment variable. |
| GetValueAsync(ValueProviderContext, CancellationToken) |
Gets the value for use as an environment variable in the specified context. |
GetValueAsync(CancellationToken)
- Source:
- IValueProvider.cs
- Source:
- IValueProvider.cs
- Source:
- IValueProvider.cs
- Source:
- IValueProvider.cs
- Source:
- IValueProvider.cs
- Source:
- IValueProvider.cs
- Source:
- IValueProvider.cs
Gets the value for use as an environment variable.
public System.Threading.Tasks.ValueTask<string?> GetValueAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetValueAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
Public Function GetValueAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of String)
Parameters
- cancellationToken
- CancellationToken
Returns
Applies to
GetValueAsync(ValueProviderContext, CancellationToken)
- Source:
- IValueProvider.cs
Gets the value for use as an environment variable in the specified context.
public virtual System.Threading.Tasks.ValueTask<string?> GetValueAsync(Aspire.Hosting.ApplicationModel.ValueProviderContext context, System.Threading.CancellationToken cancellationToken = default);
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 Overridable Function GetValueAsync (context As ValueProviderContext, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of String)
Parameters
- context
- ValueProviderContext
- cancellationToken
- CancellationToken