Ejemplo n.º 1
0
        /// <summary>
        /// Creates the file path for the provided entity in the folder specified by the FailedDirectoryPath property.
        /// </summary>
        /// <param name="entity">The entity to create the file path for.</param>
        /// <returns>The file path for the provided entity.</returns>
        public string CreateFailedEntityPath(IEntity entity)
        {
            string basePath = FailedDirectoryPath + Path.DirectorySeparatorChar + GetPreviousVersion().ToString().Replace(".", "-");

            string fullPath = new EntityFileNamer(entity, basePath).CreateFilePath();

            return(fullPath);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates the file path for the provided entity in the folder specified by the ImportableDirectoryPath property.
        /// </summary>
        /// <param name="entity">The entity to create the file path for.</param>
        /// <returns>The file path for the provided entity.</returns>
        public string CreateImportableEntityPath(IEntity entity)
        {
            Guid id = entity.ID;

            string basePath = ImportableDirectoryPath;

            string fullPath = new EntityFileNamer(entity, basePath).CreateFilePath();

            return(fullPath);
        }