diff options
| author | 杨宇千 <crupest@outlook.com> | 2019-08-08 16:54:03 +0800 |
|---|---|---|
| committer | 杨宇千 <crupest@outlook.com> | 2019-08-08 16:54:03 +0800 |
| commit | ed85aa28b49789aa413a7e10637368c812411640 (patch) | |
| tree | da11e395a3fd1340187fb785fc17e570171b942b /Timeline/Configs | |
| parent | 57151c879376374425adb04fb68dad2cf7930df8 (diff) | |
| parent | 29bd71cd93b03248254f341aff9252374abc74ec (diff) | |
| download | timeline-ed85aa28b49789aa413a7e10637368c812411640.tar.gz timeline-ed85aa28b49789aa413a7e10637368c812411640.tar.bz2 timeline-ed85aa28b49789aa413a7e10637368c812411640.zip | |
Merge branch 'master' into null-request-field
Diffstat (limited to 'Timeline/Configs')
| -rw-r--r-- | Timeline/Configs/DatabaseConfig.cs | 14 | ||||
| -rw-r--r-- | Timeline/Configs/JwtConfig.cs | 30 |
2 files changed, 22 insertions, 22 deletions
diff --git a/Timeline/Configs/DatabaseConfig.cs b/Timeline/Configs/DatabaseConfig.cs index 05dc630e..e24ecdfb 100644 --- a/Timeline/Configs/DatabaseConfig.cs +++ b/Timeline/Configs/DatabaseConfig.cs @@ -1,7 +1,7 @@ -namespace Timeline.Configs -{ - public class DatabaseConfig - { - public string ConnectionString { get; set; } - } -} +namespace Timeline.Configs
+{
+ public class DatabaseConfig
+ {
+ public string ConnectionString { get; set; }
+ }
+}
diff --git a/Timeline/Configs/JwtConfig.cs b/Timeline/Configs/JwtConfig.cs index 4d5ef97f..8c61d7bc 100644 --- a/Timeline/Configs/JwtConfig.cs +++ b/Timeline/Configs/JwtConfig.cs @@ -1,15 +1,15 @@ -namespace Timeline.Configs -{ - public class JwtConfig - { - public string Issuer { get; set; } - public string Audience { get; set; } - public string SigningKey { get; set; } - - /// <summary> - /// Set the default value of expire offset of jwt token. - /// Unit is second. Default is 3600 * 24 seconds, aka 1 day. - /// </summary> - public long DefaultExpireOffset { get; set; } = 3600 * 24; - } -} +namespace Timeline.Configs
+{
+ public class JwtConfig
+ {
+ public string Issuer { get; set; }
+ public string Audience { get; set; }
+ public string SigningKey { get; set; }
+
+ /// <summary>
+ /// Set the default value of expire offset of jwt token.
+ /// Unit is second. Default is 3600 * 24 seconds, aka 1 day.
+ /// </summary>
+ public long DefaultExpireOffset { get; set; } = 3600 * 24;
+ }
+}
|
