Skip to content

Commit 83573c7

Browse files
authored
Add nullable annotation to ResultContext<TOptions>.Result (#55948)
1 parent ca1f641 commit 83573c7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Security/Authentication/Core/src/Events/ResultContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public AuthenticationProperties Properties
4343
/// <summary>
4444
/// Gets the <see cref="AuthenticateResult"/> result.
4545
/// </summary>
46-
public AuthenticateResult Result { get; private set; } = default!;
46+
public AuthenticateResult? Result { get; private set; }
4747

4848
/// <summary>
4949
/// Calls success creating a ticket with the <see cref="Principal"/> and <see cref="Properties"/>.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
#nullable enable
2+
*REMOVED*Microsoft.AspNetCore.Authentication.ResultContext<TOptions>.Result.get -> Microsoft.AspNetCore.Authentication.AuthenticateResult!
3+
Microsoft.AspNetCore.Authentication.ResultContext<TOptions>.Result.get -> Microsoft.AspNetCore.Authentication.AuthenticateResult?

0 commit comments

Comments
 (0)