Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Feb 8, 2025
1 parent bdbf63e commit f8e2c57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Shiny.Mediator/Headers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static class Headers
public static bool BypassMiddlewareEnabled(this IMediatorContext context)
=> context.Values.ContainsKey(BypassMiddleware.Key);

public static bool BypassErrorTrapsEnabled(this IMediatorContext context)
public static bool BypassExceptionHandlingEnabled(this IMediatorContext context)
=> context.Values.ContainsKey(BypassExceptionHandling.Key);

const string TimerRefreshHeader = nameof(TimerRefreshHeader);
Expand Down
6 changes: 3 additions & 3 deletions src/Shiny.Mediator/Middleware/ExceptionHandlingMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public async Task<TResult> Process(
CancellationToken cancellationToken
)
{
if (context.BypassErrorTrapsEnabled())
if (context.BypassExceptionHandlingEnabled())
await next().ConfigureAwait(false);

TResult result = default;
Expand Down Expand Up @@ -41,7 +41,7 @@ GlobalExceptionHandler handler
{
public async Task Process(CommandContext<TCommand> context, CommandHandlerDelegate next, CancellationToken cancellationToken)
{
if (context.BypassErrorTrapsEnabled())
if (context.BypassExceptionHandlingEnabled())
await next().ConfigureAwait(false);

try
Expand All @@ -67,7 +67,7 @@ GlobalExceptionHandler handler
{
public async Task Process(EventContext<TEvent> context, EventHandlerDelegate next, CancellationToken cancellationToken)
{
if (context.BypassErrorTrapsEnabled())
if (context.BypassExceptionHandlingEnabled())
await next().ConfigureAwait(false);

try
Expand Down

0 comments on commit f8e2c57

Please sign in to comment.