Example #1
0
#pragma warning disable CS8613 // Nullability of reference types in return type doesn't match implicitly implemented member.
        public async Task <AppRole?> FindByIdAsync(string id, CancellationToken cancellationToken = default)
#pragma warning restore CS8613 // Nullability of reference types in return type doesn't match implicitly implemented member.
        {
            ThrowIf.Null(id, nameof(id));
            return(await _roleService.FindRoleByIdAsync(new Guid(id), cancellationToken).ConfigureAwait(false));
        }