Ejemplo n.º 1
0
        public async Task <ProfileModel> GetProfile(string path)
        {
            _stringValidator.IsNullOrWhitespace(path, nameof(path));

            var profile = await _profileReader.Read(path);

            var environmentVariables = _profileReader.ExtractEnvironmentVariables(profile);

            var environmentVariablesValues = _environmentVariableReader.Read(environmentVariables);

            profile = ProcessEnvironmentVariables(profile, environmentVariablesValues);

            return(profile);
        }