Skip to content

Commit

Permalink
More clarity for Bugsnag call
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Sep 11, 2024
1 parent 2d86836 commit 283e41d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public class BugsnagExceptionFilter : ExceptionFilterAttribute
{
public override void OnException(ExceptionContext context)
{
context.HttpContext.RequestServices.GetService<Bugsnag.IClient>()?.Notify(context.Exception);
Bugsnag.IClient? client = context.HttpContext.RequestServices.GetService<Bugsnag.IClient>();
client?.Notify(context.Exception);
}
}

0 comments on commit 283e41d

Please sign in to comment.