pull/3604/head
Alper Ebicoglu 6 years ago
parent 8398455bad
commit ff5c55d8a2

@ -60,10 +60,22 @@ namespace Volo.Abp.Cli.ProjectBuilding
args.TemplateSource
);
DeveloperApiKeyResult apiKeyResult;
DeveloperApiKeyResult apiKeyResult = null;
#if DEBUG
apiKeyResult = _configuration.GetSection("apiKeyResult").Get<DeveloperApiKeyResult>(); //you can use user secrets
try
{
var apiKeyResultSection = _configuration.GetSection("apiKeyResult");
if (apiKeyResultSection.Exists())
{
apiKeyResult = apiKeyResultSection.Get<DeveloperApiKeyResult>(); //you can use user secrets
}
}
catch (Exception e)
{
Console.WriteLine(e);
}
if (apiKeyResult == null)
{
apiKeyResult = await ApiKeyService.GetApiKeyOrNullAsync();

Loading…
Cancel
Save