SmartRoleGeneratorCreateSmartRoleAsync - метод
Создаёт умную роль по идентификатору владельца умной роли.
Пространство имён: Tessa.Roles.SmartRolesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public ValueTask<SmartRole> CreateSmartRoleAsync(
SmartRoleOwner owner,
CancellationToken cancellationToken = default
)
Public Function CreateSmartRoleAsync (
owner As SmartRoleOwner,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of SmartRole)
public:
virtual ValueTask<SmartRole^> CreateSmartRoleAsync(
SmartRoleOwner^ owner,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract CreateSmartRoleAsync :
owner : SmartRoleOwner *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<SmartRole>
override CreateSmartRoleAsync :
owner : SmartRoleOwner *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<SmartRole>
- owner SmartRoleOwner
- Владелец умной роли.
- cancellationToken CancellationToken (Optional)
- Объект, с помощью которого можно отменить асинхронную задачу.
ValueTaskSmartRoleУмная роль.
ISmartRoleGeneratorCreateSmartRoleAsync(SmartRoleOwner, CancellationToken)