Skip to content

Commit 357b389

Browse files
committed
Use the DefaultProblemDetailsFactory copy only for .NET 8
1 parent 2bda2ef commit 357b389

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ForEvolve.ExceptionMapper/Serialization/DefaultProblemDetailsFactory.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
#if !NET9_0_OR_GREATER
2+
// Licensed to the .NET Foundation under one or more agreements.
23
// The .NET Foundation licenses this file to you under the MIT license.
34

45
using Microsoft.AspNetCore.Http;
@@ -100,7 +101,7 @@ private void ApplyProblemDetailsDefaults(HttpContext httpContext, ProblemDetails
100101
_configure?.Invoke(new() { HttpContext = httpContext!, ProblemDetails = problemDetails });
101102
}
102103
}
103-
104+
#endif
104105
#if NET6_0
105106
public class ProblemDetailsOptions
106107
{

0 commit comments

Comments
 (0)