Skip to content

Commit b66402c

Browse files
Fixed nullable annotation. (#29389)
Co-authored-by: James Newton-King <[email protected]>
1 parent 98c10f0 commit b66402c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Security/Authentication/Cookies/src/ITicketStore.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public interface ITicketStore
3030
/// Retrieves an identity from the store for the given key.
3131
/// </summary>
3232
/// <param name="key">The key associated with the identity.</param>
33-
/// <returns>The identity associated with the given key, or if not found.</returns>
34-
Task<AuthenticationTicket> RetrieveAsync(string key);
33+
/// <returns>The identity associated with the given key, or <c>null</c> if not found.</returns>
34+
Task<AuthenticationTicket?> RetrieveAsync(string key);
3535

3636
/// <summary>
3737
/// Remove the identity associated with the given key.

src/Security/Authentication/Cookies/src/PublicAPI.Shipped.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Microsoft.AspNetCore.Authentication.Cookies.ICookieManager.GetRequestCookie(Micr
8080
Microsoft.AspNetCore.Authentication.Cookies.ITicketStore
8181
Microsoft.AspNetCore.Authentication.Cookies.ITicketStore.RemoveAsync(string! key) -> System.Threading.Tasks.Task!
8282
Microsoft.AspNetCore.Authentication.Cookies.ITicketStore.RenewAsync(string! key, Microsoft.AspNetCore.Authentication.AuthenticationTicket! ticket) -> System.Threading.Tasks.Task!
83-
Microsoft.AspNetCore.Authentication.Cookies.ITicketStore.RetrieveAsync(string! key) -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket!>!
83+
Microsoft.AspNetCore.Authentication.Cookies.ITicketStore.RetrieveAsync(string! key) -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket?>!
8484
Microsoft.AspNetCore.Authentication.Cookies.ITicketStore.StoreAsync(Microsoft.AspNetCore.Authentication.AuthenticationTicket! ticket) -> System.Threading.Tasks.Task<string!>!
8585
Microsoft.AspNetCore.Authentication.Cookies.PostConfigureCookieAuthenticationOptions
8686
Microsoft.AspNetCore.Authentication.Cookies.PostConfigureCookieAuthenticationOptions.PostConfigure(string! name, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions! options) -> void

0 commit comments

Comments
 (0)