-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 312-stabilize-client-side-otel-export
- Loading branch information
Showing
61 changed files
with
1,430 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace LexBoxApi.Config; | ||
|
||
public class TusConfig | ||
{ | ||
[Required(AllowEmptyStrings = false)] | ||
public required string TestUploadPath { get; set; } | ||
[Required(AllowEmptyStrings = false)] | ||
public required string ResetUploadPath { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
backend/LexBoxApi/ErrorHandling/AddExceptionFeatureDevExceptionFilter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Microsoft.AspNetCore.Diagnostics; | ||
using Microsoft.AspNetCore.Http.Features; | ||
|
||
namespace LexBoxApi.ErrorHandling; | ||
|
||
public class AddExceptionFeatureDevExceptionFilter : IDeveloperPageExceptionFilter | ||
{ | ||
public async Task HandleExceptionAsync(ErrorContext errorContext, Func<ErrorContext, Task> next) | ||
{ | ||
var httpContext = errorContext.HttpContext; | ||
var features = httpContext.Features; | ||
if (features.Get<IExceptionHandlerFeature>() is null) | ||
{ | ||
features.Set<IExceptionHandlerFeature>(new ExceptionHandlerFeature | ||
{ | ||
Error = errorContext.Exception, | ||
Path = httpContext.Request.Path, | ||
Endpoint = httpContext.GetEndpoint(), | ||
RouteValues = features.Get<IRouteValuesFeature>()?.RouteValues | ||
}); | ||
} | ||
await next(errorContext); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.