Skip to content

Commit

Permalink
Update TestServerFixture.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Apr 5, 2023
1 parent a6ea3c8 commit 6071b4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ImageSharp.Web.Tests/TestUtilities/TestServerFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ protected void ConfigureServices(IServiceCollection services)
return onParseCommandsAsync.Invoke(context);
};
Func<ImageCommandContext, DecoderOptions, Task> onBeforeLoadAsync = options.OnBeforeLoadAsync;
Func<ImageCommandContext, Configuration, Task<DecoderOptions?>> onBeforeLoadAsync = options.OnBeforeLoadAsync;
options.OnBeforeLoadAsync = (context, decoderOptions) =>
options.OnBeforeLoadAsync = (context, configuration) =>
{
Assert.NotNull(context);
Assert.NotNull(decoderOptions);
Assert.NotNull(configuration);
return onBeforeLoadAsync.Invoke(context, decoderOptions);
return onBeforeLoadAsync.Invoke(context, configuration);
};
Func<ImageProcessingContext, Task> onProcessedAsync = options.OnProcessedAsync;
Expand Down

0 comments on commit 6071b4e

Please sign in to comment.