Skip to content

Commit

Permalink
refactoring object and exception result
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofx committed Mar 30, 2023
1 parent a0be419 commit 22d607b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Miru/Mvc/ExceptionResultExpression.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using System;
using Microsoft.AspNetCore.Mvc;

namespace Miru.Mvc;

public class ExceptionResultExpression
{
internal Func<ExceptionResultContext, IActionResult> RespondWith { get; set; }
public Func<ExceptionResultContext, IActionResult> RespondWith { get; set; }

public Func<ExceptionResultContext, bool> When { get; set; }

Expand Down
3 changes: 1 addition & 2 deletions src/Miru/Mvc/ObjectResultConfigExpression.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Infrastructure;
Expand All @@ -23,7 +22,7 @@ public class ObjectResultConfigExpression
};
}

internal Func<ObjectResultContext, Task> RespondWith { get; set; }
public Func<ObjectResultContext, Task> RespondWith { get; set; }

public Func<ObjectResultContext, bool> When { get; set; }
}

0 comments on commit 22d607b

Please sign in to comment.