IUserInfoProviderGetUserInfoAsyncTUserInfo - метод

Retrieves user information for single user with specified identifier.

Definition

Пространство имён: Tessa.Roles.UserInfo
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
Task<TUserInfo> GetUserInfoAsync<TUserInfo>(
	Guid userID,
	CancellationToken cancellationToken = default
)
where TUserInfo : class, new(), IUserInfo

Параметры

userID  Guid
The user identifier.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Параметры типа

TUserInfo
The type of user information to retrieve. Must implement IUserInfo and have a parameterless constructor.

Возвращаемое значение

TaskTUserInfo
User information or user not found by identifier.

См. также