Interface IUserIdKeyResolver
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IUserIdKeyResolverMethods
View SourceGetAsync(Guid)
Tries to resolve a user key to a user id without fetching the entire user.
Declaration
Task<int> GetAsync(Guid key)Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | key | The key of the user. | 
Returns
| Type | Description | 
|---|---|
| Task<System.Int32> | The id of the user, null if the user doesn't exist. | 
GetAsync(Int32)
Tries to resolve a user id to a user key without fetching the entire user.
Declaration
Task<Guid> GetAsync(int id)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | id | The id of the user. | 
Returns
| Type | Description | 
|---|---|
| Task<Guid> | The key of the user, null if the user doesn't exist. |