From 2eb0913378932a85a5817766f83f5351f01a68d3 Mon Sep 17 00:00:00 2001
From: maliming <6908465+maliming@users.noreply.github.com>
Date: Wed, 12 Aug 2020 11:18:03 +0800
Subject: [PATCH] Use integer instead of double.
---
.../Abp/IdentityModel/IdentityClientConfiguration.cs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityClientConfiguration.cs b/framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityClientConfiguration.cs
index d831c28808..5f2f4af573 100644
--- a/framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityClientConfiguration.cs
+++ b/framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityClientConfiguration.cs
@@ -84,12 +84,12 @@ namespace Volo.Abp.IdentityModel
}
///
- /// Cache absolute expiration
- /// Default: 30 minutes.
+ /// Absolute expiration duration (as seconds) for the access token cache.
+ /// Default: 1800 seconds (30 minutes)
///
- public double CacheAbsoluteExpiration
+ public int CacheAbsoluteExpiration
{
- get => this.GetOrDefault(nameof(CacheAbsoluteExpiration ))?.To() ?? 60 * 30;
+ get => this.GetOrDefault(nameof(CacheAbsoluteExpiration ))?.To() ?? 60 * 30;
set => this[nameof(CacheAbsoluteExpiration)] = value.ToString(CultureInfo.InvariantCulture);
}
@@ -107,7 +107,7 @@ namespace Volo.Abp.IdentityModel
string userName = null,
string userPassword = null,
bool requireHttps = true,
- double cacheAbsoluteExpiration = 60 * 30)
+ int cacheAbsoluteExpiration = 60 * 30)
{
this[nameof(Authority)] = authority;
this[nameof(Scope)] = scope;