public async void AsyncUpdateEnvironmentVariableInformation() { IsModelInformationBeingUpdated = true; IServiceFactory sf = ServiceFactoryProducer.GetServiceFactory(); IEnvironmentVariableService evs = sf.CreateEnvironmentVariableService(); ModelInformationUpdateProgress = "Loading environment variable information..."; EnvironmentVariables = await Task.Run(() => { return(evs.GetEnvironmentVariables()); }); RaisePropertyChanged("EnvironmentVariables"); IsModelInformationBeingUpdated = false; }
public MailServices(IConfiguration configuration, IEnvironmentVariableService environmentVariableService) { _configuration = configuration; //ApiKey = _configuration.GetValue<string>("APIKEY"); _environmentVariableService = environmentVariableService; }