ServiceClientGenerator.GenerationManifest.DetermineModelPath C# (CSharp) Method

DetermineModelPath() private static method

Finds the full path to the model*.normal.json file in order to parse the config
private static DetermineModelPath ( string model, string modelsFolder ) : string
model string The name of the model found in the manifest file
modelsFolder string The folder that contains the model*.normal.json files
return string
        private static string DetermineModelPath(string model, string modelsFolder)
        {
            var files = Directory.GetFiles(modelsFolder, model + "*.normal.json").OrderByDescending(x => x);
            if (!files.Any())
                throw new Exception("Failed to find model for service " + model);

            return files.First();
        }