Пример #1
0
        public static string GetDataDirectoryPath(CoreConfiguration coreConfiguration, string name, ResourceType type)
        {
            var dataDirectory     = coreConfiguration.DataDirectory;
            var dataDirectoryPath = dataDirectory != null?coreConfiguration.DataDirectory.Combine(Inflector.Pluralize(type.ToString())).Combine(name).ToFullPath() :
                                        GenerateDefaultDataDirectory(coreConfiguration.GetDefaultValue <CoreConfiguration>(v => v.DataDirectory).ToString(), type, name);

            return(dataDirectoryPath);
        }