Skip to content

Commit 6c4050f

Browse files
Rename IConfigurable
1 parent 7fd7e5e commit 6c4050f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/ImageSharp/Advanced/AdvancedImageExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ public static void AcceptVisitor(this Image source, IImageVisitor visitor)
2929
/// <param name="source">The source image.</param>
3030
/// <returns>Returns the configuration.</returns>
3131
public static Configuration GetConfiguration(this Image source)
32-
=> GetConfiguration((IConfigurable)source);
32+
=> GetConfiguration((IConfigurationProvider)source);
3333

3434
/// <summary>
3535
/// Gets the configuration for the image frame.
3636
/// </summary>
3737
/// <param name="source">The source image.</param>
3838
/// <returns>Returns the configuration.</returns>
3939
public static Configuration GetConfiguration(this ImageFrame source)
40-
=> GetConfiguration((IConfigurable)source);
40+
=> GetConfiguration((IConfigurationProvider)source);
4141

4242
/// <summary>
4343
/// Gets the configuration .
4444
/// </summary>
4545
/// <param name="source">The source image</param>
4646
/// <returns>Returns the bounds of the image</returns>
47-
private static Configuration GetConfiguration(IConfigurable source)
47+
private static Configuration GetConfiguration(IConfigurationProvider source)
4848
=> source?.Configuration ?? Configuration.Default;
4949

5050
/// <summary>
@@ -174,7 +174,7 @@ internal static Memory<TPixel> GetPixelRowMemory<TPixel>(this Image<TPixel> sour
174174
/// </summary>
175175
/// <param name="source">The source image.</param>
176176
/// <returns>Returns the configuration.</returns>
177-
internal static MemoryAllocator GetMemoryAllocator(this IConfigurable source)
177+
internal static MemoryAllocator GetMemoryAllocator(this IConfigurationProvider source)
178178
=> GetConfiguration(source).MemoryAllocator;
179179

180180
/// <summary>

src/ImageSharp/Advanced/IConfigurable.cs renamed to src/ImageSharp/Advanced/IConfigurationProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
namespace SixLabors.ImageSharp.Advanced
55
{
66
/// <summary>
7-
/// Encapsulates the properties for configuration.
7+
/// Defines the contract for objects that can provide access to configuration.
88
/// </summary>
9-
internal interface IConfigurable
9+
internal interface IConfigurationProvider
1010
{
1111
/// <summary>
1212
/// Gets the configuration which allows altering default behaviour or extending the library.

src/ImageSharp/Image.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace SixLabors.ImageSharp
1616
/// For the non-generic <see cref="Image"/> type, the pixel type is only known at runtime.
1717
/// <see cref="Image"/> is always implemented by a pixel-specific <see cref="Image{TPixel}"/> instance.
1818
/// </summary>
19-
public abstract partial class Image : IImage, IConfigurable
19+
public abstract partial class Image : IImage, IConfigurationProvider
2020
{
2121
private Size size;
2222
private readonly Configuration configuration;
@@ -74,7 +74,7 @@ internal Image(
7474
public ImageFrameCollection Frames => this.NonGenericFrameCollection;
7575

7676
/// <inheritdoc/>
77-
Configuration IConfigurable.Configuration => this.configuration;
77+
Configuration IConfigurationProvider.Configuration => this.configuration;
7878

7979
/// <inheritdoc />
8080
public void Dispose()

src/ImageSharp/ImageFrame.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace SixLabors.ImageSharp
1313
/// In case of animated formats like gif, it contains the single frame in a animation.
1414
/// In all other cases it is the only frame of the image.
1515
/// </summary>
16-
public abstract partial class ImageFrame : IConfigurable, IDisposable
16+
public abstract partial class ImageFrame : IConfigurationProvider, IDisposable
1717
{
1818
private readonly Configuration configuration;
1919

@@ -51,7 +51,7 @@ protected ImageFrame(Configuration configuration, int width, int height, ImageFr
5151
public ImageFrameMetadata Metadata { get; }
5252

5353
/// <inheritdoc/>
54-
Configuration IConfigurable.Configuration => this.configuration;
54+
Configuration IConfigurationProvider.Configuration => this.configuration;
5555

5656
/// <summary>
5757
/// Gets the size of the frame.

0 commit comments

Comments
 (0)