示例#1
0
 public async Task<bool> ApplicationExists(string name)
 {
     var adminProvider = new AdminProvider(_url, _apiKey);
     return await adminProvider.ApplicationExists(name);
 }
示例#2
0
 public async Task<ApiKey> CreateApiKey(string applicationName, ApiKey key)
 {
     var adminProvider = new AdminProvider(_url, _apiKey);
     return await adminProvider.CreateApiKey(applicationName, key);
 }
示例#3
0
 public async Task<bool> DeleteApplicationAsync(string applicationName)
 {
     var adminProvider = new AdminProvider(_url, _apiKey);
     return await adminProvider.DeleteApplication(applicationName);
 }
示例#4
0
 public async Task<bool> UpdateApplicationAsync(string applicationName, string newApplicationName, string description)
 {
     var adminProvider = new AdminProvider(_url, _apiKey);
     return await adminProvider.UpdateApplication(applicationName, newApplicationName, description);
 }
示例#5
0
 public async Task<SettingsApplication[]> GetApplications()
 {
     var adminProvider = new AdminProvider(_url, _apiKey);
     return await adminProvider.Applications();
 }
示例#6
0
 public async Task<ApiKey> GetApiKey(string applicationName, string apiKeyName)
 {
     var adminProvider = new AdminProvider(_url, _apiKey);
     return await adminProvider.GetApiKey(applicationName, apiKeyName);
 }
示例#7
0
 public async Task<bool> ApiKeyExists(string applicationName, string apiKeyName)
 {
     var adminProvider = new AdminProvider(_url, _apiKey);
     return await adminProvider.ApiKeyExists(applicationName, apiKeyName);
 }