Skip to content

Commit 5f1c88a

Browse files
Rename properties
1 parent 83273e7 commit 5f1c88a

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/ImageSharp.Web/Caching/PhysicalFileSystemCache.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ public PhysicalFileSystemCache(
7878
/// <returns><see cref="string"/> representing the fully qualified cache root path.</returns>
7979
internal static string GetCacheRoot(PhysicalFileSystemCacheOptions cacheOptions, string webRootPath, string contentRootPath)
8080
{
81-
string cacheRoot = string.IsNullOrWhiteSpace(cacheOptions.CacheRoot)
81+
string cacheRoot = string.IsNullOrWhiteSpace(cacheOptions.CacheRootPath)
8282
? webRootPath
83-
: cacheOptions.CacheRoot;
83+
: cacheOptions.CacheRootPath;
8484

8585
return Path.IsPathFullyQualified(cacheRoot)
8686
? Path.Combine(cacheRoot, cacheOptions.CacheFolder)

src/ImageSharp.Web/Caching/PhysicalFileSystemCacheOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class PhysicalFileSystemCacheOptions
1919
public uint CacheFolderDepth { get; set; } = 8;
2020

2121
/// <summary>
22-
/// Gets or sets the optional cache root folder.
22+
/// Gets or sets the optional cache root folder path.
2323
/// <para>
2424
/// This value can be <see langword="null"/>, a fully qualified absolute path,
2525
/// or a path relative to the directory that contains the application
@@ -30,6 +30,6 @@ public class PhysicalFileSystemCacheOptions
3030
/// application content files; commonly 'wwwroot'.
3131
/// </para>
3232
/// </summary>
33-
public string CacheRoot { get; set; }
33+
public string CacheRootPath { get; set; }
3434
}
3535
}

src/ImageSharp.Web/Providers/PhysicalFileSystemProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public Task<IImageResolver> GetAsync(HttpContext context)
9494
/// <returns><see cref="string"/> representing the fully qualified provider root path.</returns>
9595
internal static string GetProviderRoot(PhysicalFileSystemProviderOptions providerOptions, string webRootPath, string contentRootPath)
9696
{
97-
string providerRoot = string.IsNullOrWhiteSpace(providerOptions.ProviderRoot)
97+
string providerRoot = string.IsNullOrWhiteSpace(providerOptions.ProviderRootPath)
9898
? webRootPath
99-
: providerOptions.ProviderRoot;
99+
: providerOptions.ProviderRootPath;
100100

101101
return Path.IsPathFullyQualified(providerRoot)
102102
? providerRoot

src/ImageSharp.Web/Providers/PhysicalFileSystemProviderOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SixLabors.ImageSharp.Web.Providers
99
public class PhysicalFileSystemProviderOptions
1010
{
1111
/// <summary>
12-
/// Gets or sets the optional provider root folder.
12+
/// Gets or sets the optional provider root folder path.
1313
/// <para>
1414
/// This value can be <see langword="null"/>, a fully qualified absolute path,
1515
/// or a path relative to the directory that contains the application
@@ -20,6 +20,6 @@ public class PhysicalFileSystemProviderOptions
2020
/// application content files; commonly 'wwwroot'.
2121
/// </para>
2222
/// </summary>
23-
public string ProviderRoot { get; set; }
23+
public string ProviderRootPath { get; set; }
2424
}
2525
}

tests/ImageSharp.Web.Tests/Caching/PhysicialFileSystemCacheTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void CacheRootFromOptions(string cacheFolder, string cacheRoot, string we
4040
var cacheOptions = new PhysicalFileSystemCacheOptions
4141
{
4242
CacheFolder = cacheFolder,
43-
CacheRoot = cacheRoot
43+
CacheRootPath = cacheRoot
4444
};
4545

4646
string cacheRootResult = PhysicalFileSystemCache.GetCacheRoot(cacheOptions, webRootPath, contentRootPath);

tests/ImageSharp.Web.Tests/Providers/PhysicalFileSystemProviderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void CacheRootFromOptions(string providerRoot, string webRootPath, string
3232
{
3333
var providerOptions = new PhysicalFileSystemProviderOptions
3434
{
35-
ProviderRoot = providerRoot,
35+
ProviderRootPath = providerRoot,
3636
};
3737

3838
string providerRootResult = PhysicalFileSystemProvider.GetProviderRoot(providerOptions, webRootPath, contentRootPath);

0 commit comments

Comments
 (0)