ManageApiKeysAsyncWrapper
Assembly: ServiceStack.dll
View Source
Declaration
public class ManageApiKeysAsyncWrapper : IManageApiKeysAsync
Methods
InitApiKeySchema()
View Source
Declaration
public void InitApiKeySchema()
ApiKeyExistsAsync(String, CancellationToken)
View Source
Declaration
public Task<bool> ApiKeyExistsAsync(string apiKey, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
System.String | apiKey |
System.Threading.CancellationToken | token |
GetApiKeyAsync(String, CancellationToken)
View Source
Declaration
public Task<ApiKey> GetApiKeyAsync(string apiKey, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<ServiceStack.Auth.ApiKey>
Parameters
Type | Name |
---|---|
System.String | apiKey |
System.Threading.CancellationToken | token |
GetUserApiKeysAsync(String, CancellationToken)
View Source
Declaration
public Task<List<ApiKey>> GetUserApiKeysAsync(string userId, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.Auth.ApiKey>>
Parameters
Type | Name |
---|---|
System.String | userId |
System.Threading.CancellationToken | token |
StoreAllAsync(IEnumerable<ApiKey>, CancellationToken)
View Source
Declaration
public Task StoreAllAsync(IEnumerable<ApiKey> apiKeys, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<ServiceStack.Auth.ApiKey> | apiKeys |
System.Threading.CancellationToken | token |