-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Intercepters: Don't return null for Async methods
Using interceptor?. pattern sent null back for Task which was being awaited. Pattern, for async always make null check on interceptor before calling into. For Sync methods if they are returning void or possible null then only use interceptor?. Testing: Errors only happen when diagnosticSource enabled so that intercepter is null but we still go inside the block. Not sure how to set it up that in tests. Submitting PR to unblock ASP.NET Core
- Loading branch information
Showing
1 changed file
with
32 additions
and
35 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