Share via


IEnvironmentVariableService Interface

Definition

Represents a service to get and set environment variables.

public interface IEnvironmentVariableService
type IEnvironmentVariableService = interface
Public Interface IEnvironmentVariableService
Derived

Methods

RefreshEnvironmentVariablesAsync(CancellationToken)

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.

SubscribeAsync(IObserver<IReadOnlyDictionary<String,String>>, CancellationToken)

Attaches an observer for updates to environment variables. The observer will always receive an initial message with the current environment variables.

UpdateEnvironmentVariablesAsync(IReadOnlyDictionary<String,String>, CancellationToken)

Updates the environment variables and notifies subscribers of any changes.

Applies to