Example #1
0
 /// <summary>
 /// Creates a new API key. API keys have no rights and are disabled upon creation.
 /// </summary>
 /// <param name="name">Name of the API key to create.</param>
 /// <returns>Returns the newly created key.</returns>
 public ApiKey CreateApiKey(string name)
 {
     return(ApiKeyRepository.CreateApiKey(name));
 }
 /// <summary>
 /// Creates a new API key. API keys are disabled upon creation.
 /// </summary>
 /// <param name="name">Name of the API key to create.</param>
 /// <returns>Returns the newly created key.</returns>
 public async Task <ApiKey> CreateApiKey(string name)
 {
     return(await ApiKeyRepository.CreateApiKey(name));
 }