diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-07-21 14:22:49 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-07-21 14:35:00 -0700 |
| commit | 6ce398594a319b76ca6e27c06a6fd1759bf367fd (patch) | |
| tree | fe5ce009873921d2189db553dc0be7677e7855f3 /src | |
| parent | 99f442fe0d06be387ff4d2e5f97aac3196fe147a (diff) | |
| download | wix-6ce398594a319b76ca6e27c06a6fd1759bf367fd.tar.gz wix-6ce398594a319b76ca6e27c06a6fd1759bf367fd.tar.bz2 wix-6ce398594a319b76ca6e27c06a6fd1759bf367fd.zip | |
Simplify IPathResolve GetDirectoryPath() by adding canonical-specific method
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Extensibility/Services/IPathResolver.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/WixToolset.Extensibility/Services/IPathResolver.cs b/src/WixToolset.Extensibility/Services/IPathResolver.cs index e468112f..5713d2d7 100644 --- a/src/WixToolset.Extensibility/Services/IPathResolver.cs +++ b/src/WixToolset.Extensibility/Services/IPathResolver.cs | |||
| @@ -3,19 +3,27 @@ | |||
| 3 | namespace WixToolset.Extensibility.Services | 3 | namespace WixToolset.Extensibility.Services |
| 4 | { | 4 | { |
| 5 | using System.Collections.Generic; | 5 | using System.Collections.Generic; |
| 6 | using WixToolset.Data; | ||
| 6 | using WixToolset.Extensibility.Data; | 7 | using WixToolset.Extensibility.Data; |
| 7 | 8 | ||
| 8 | public interface IPathResolver | 9 | public interface IPathResolver |
| 9 | { | 10 | { |
| 10 | /// <summary> | 11 | /// <summary> |
| 11 | /// Get the source path of a directory. | 12 | /// Get the canonical source path of a directory. |
| 12 | /// </summary> | 13 | /// </summary> |
| 13 | /// <param name="directories">All cached directories.</param> | 14 | /// <param name="directories">All cached directories.</param> |
| 14 | /// <param name="componentIdGenSeeds">Hash table of Component GUID generation seeds indexed by directory id.</param> | 15 | /// <param name="componentIdGenSeeds">Hash table of Component GUID generation seeds indexed by directory id.</param> |
| 15 | /// <param name="directory">Directory identifier.</param> | 16 | /// <param name="directory">Directory identifier.</param> |
| 16 | /// <param name="canonicalize">Canonicalize the path for standard directories.</param> | ||
| 17 | /// <returns>Source path of a directory.</returns> | 17 | /// <returns>Source path of a directory.</returns> |
| 18 | string GetDirectoryPath(Dictionary<string, IResolvedDirectory> directories, Dictionary<string, string> componentIdGenSeeds, string directory, bool canonicalize); | 18 | string GetCanonicalDirectoryPath(Dictionary<string, IResolvedDirectory> directories, Dictionary<string, string> componentIdGenSeeds, string directory, Platform platform); |
| 19 | |||
| 20 | /// <summary> | ||
| 21 | /// Get the source path of a directory. | ||
| 22 | /// </summary> | ||
| 23 | /// <param name="directories">All cached directories.</param> | ||
| 24 | /// <param name="directory">Directory identifier.</param> | ||
| 25 | /// <returns>Source path of a directory.</returns> | ||
| 26 | string GetDirectoryPath(Dictionary<string, IResolvedDirectory> directories, string directory); | ||
| 19 | 27 | ||
| 20 | /// <summary> | 28 | /// <summary> |
| 21 | /// Gets the source path of a file. | 29 | /// Gets the source path of a file. |
