IRoleStore<TRole>.GetNormalizedRoleNameAsync(TRole, CancellationToken) IRoleStore<TRole>.GetNormalizedRoleNameAsync(TRole, CancellationToken) Method

Definition

Get a role's normalized name as an asynchronous operation.

public System.Threading.Tasks.Task<string> GetNormalizedRoleNameAsync (TRole role, System.Threading.CancellationToken cancellationToken);
abstract member GetNormalizedRoleNameAsync : 'Role * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>

Parameters

role
TRole TRole

The role whose normalized name should be retrieved.

cancellationToken
CancellationToken CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

A Task<TResult> that contains the name of the role.

Applies to