IUserInfoCacheTryGetUserInfoAsync - метод

Returns user info from the cache by user's identifier userID and handler type type. Returns null if requested info isn't cached.

Definition

Пространство имён: Tessa.Roles.UserInfo
Сборка: Tessa (в Tessa.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
C#
ValueTask<UserInfo> TryGetUserInfoAsync(
	Guid userID,
	string? type,
	CancellationToken cancellationToken = default
)

Параметры

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.

См. также