You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
- When modifying a public member, make sure to check the Public.API files for the affected assembly and update them if necessary.
12
12
- Do not ignore CS1591 warnings; analyze and add missing XML comments instead.
13
13
- Comments inside method bodies must explain *why*, not *what*: a why-comment states a constraint, invariant, or rationale the code cannot express on its own (e.g. concurrency/ordering requirements, the reason for a workaround, a justification for otherwise-surprising deliberate behavior). Narration/what-comments — restating what the next line does, section-header comments, play-by-play commentary — are not allowed. For complex logic, prefer extracting it into a separate method with a descriptive name over adding a comment.
14
+
- Library code under `src/` must call `ConfigureAwait(false)` on every `await` (including the implicit awaits in `await using`/`await foreach`) — `CA2007` is enforced as an error for `src/` only. Tests and samples are exempt and should not add it.
14
15
15
16
## Testing Guidelines
16
17
- Prefer using the Vulthil.xUnit testing framework for tests.
Copy file name to clipboardExpand all lines: src/Vulthil.Extensions.Testing/HttpResponseMessageExtensions.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ public static async Task<TResponse> GetResponseAsync<TResponse>(this HttpRespons
21
21
ArgumentNullException.ThrowIfNull(response);
22
22
response.EnsureSuccessStatusCode();
23
23
24
-
varresult=awaitresponse.Content.ReadFromJsonAsync<TResponse>(cancellationToken)??thrownewInvalidOperationException("Response content is empty or could not be deserialized.");
24
+
varresult=awaitresponse.Content.ReadFromJsonAsync<TResponse>(cancellationToken).ConfigureAwait(false)??thrownewInvalidOperationException("Response content is empty or could not be deserialized.");
0 commit comments