Compartir a través de


IEnvironmentVariableService.RefreshEnvironmentVariablesAsync Method

Definition

Checks the currently defined environment variables and notifies subscribers if there are changes. Usually this method will not do anything, but if environment variables were manually changed outside the scope of this service, this method will notify subscribers of those changes. Equivalent to calling UpdateEnvironmentVariablesAsync(IReadOnlyDictionary<String,String>, CancellationToken) with an empty update dictionary.

public System.Threading.Tasks.Task RefreshEnvironmentVariablesAsync (System.Threading.CancellationToken cancellationToken);
abstract member RefreshEnvironmentVariablesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RefreshEnvironmentVariablesAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

A cancellation token to cancel the in-progress invocation.

Returns

A task representing the async operation.

Applies to