InMemoryUserInfoCacheTryGetUserInfoAsync - метод
Returns user info from the cache by user's identifier userID and handler type type.
Returns null if requested info isn't cached.
Пространство имён: Tessa.Roles.UserInfoСборка: Tessa (в Tessa.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
public ValueTask<UserInfo> TryGetUserInfoAsync(
Guid userID,
string? type,
CancellationToken cancellationToken = default
)
Public Function TryGetUserInfoAsync (
userID As Guid,
type As String,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of UserInfo)
public:
virtual ValueTask<UserInfo^> TryGetUserInfoAsync(
Guid userID,
String^ type,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract TryGetUserInfoAsync :
userID : Guid *
type : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<UserInfo>
override TryGetUserInfoAsync :
userID : Guid *
type : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<UserInfo>
- userID Guid
- User identifier to get info from.
- type String
- Handler IUserInfoHandler type or /empty string if default handler is used.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
ValueTaskUserInfo
Represents basic user information.
IUserInfoCacheTryGetUserInfoAsync(Guid, String, CancellationToken)