示例#1
0
        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;
        }
示例#2
0
 public MailServices(IConfiguration configuration, IEnvironmentVariableService environmentVariableService)
 {
     _configuration = configuration;
     //ApiKey = _configuration.GetValue<string>("APIKEY");
     _environmentVariableService = environmentVariableService;
 }