@@ -207,7 +207,7 @@ public override async Task<Image<TPixel>> GetImageAsync(IImageDecoder decoder, D
207
207
Guard . NotNull ( decoder , nameof ( decoder ) ) ;
208
208
Guard . NotNull ( options , nameof ( options ) ) ;
209
209
210
- options . Configuration = this . Configuration ;
210
+ options . SetConfiguration ( this . Configuration ) ;
211
211
212
212
// Used in small subset of decoder tests, no caching.
213
213
// TODO: Check Path here. Why combined?
@@ -244,7 +244,7 @@ public override async Task<Image<TPixel>> GetImageAsync<T>(ISpecializedImageDeco
244
244
Guard . NotNull ( decoder , nameof ( decoder ) ) ;
245
245
Guard . NotNull ( options , nameof ( options ) ) ;
246
246
247
- options . GeneralOptions . Configuration = this . Configuration ;
247
+ options . GeneralOptions . SetConfiguration ( this . Configuration ) ;
248
248
249
249
// Used in small subset of decoder tests, no caching.
250
250
// TODO: Check Path here. Why combined?
@@ -268,7 +268,7 @@ public override void Serialize(IXunitSerializationInfo info)
268
268
269
269
private Image < TPixel > DecodeImage ( IImageDecoder decoder , DecoderOptions options )
270
270
{
271
- options . Configuration = this . Configuration ;
271
+ options . SetConfiguration ( this . Configuration ) ;
272
272
273
273
var testFile = TestFile . Create ( this . FilePath ) ;
274
274
using Stream stream = new MemoryStream ( testFile . Bytes ) ;
@@ -278,7 +278,7 @@ private Image<TPixel> DecodeImage(IImageDecoder decoder, DecoderOptions options)
278
278
private Image < TPixel > DecodeImage < T > ( ISpecializedImageDecoder < T > decoder , T options )
279
279
where T : class , ISpecializedDecoderOptions , new ( )
280
280
{
281
- options . GeneralOptions . Configuration = this . Configuration ;
281
+ options . GeneralOptions . SetConfiguration ( this . Configuration ) ;
282
282
283
283
var testFile = TestFile . Create ( this . FilePath ) ;
284
284
using Stream stream = new MemoryStream ( testFile . Bytes ) ;
0 commit comments