diff options
| author | 杨宇千 <crupest@outlook.com> | 2019-10-23 20:41:19 +0800 |
|---|---|---|
| committer | 杨宇千 <crupest@outlook.com> | 2019-10-23 20:41:19 +0800 |
| commit | 9a163719b76958374d1c27616393368e54e8b8a5 (patch) | |
| tree | b005aa3d8bc34d8e710ce7fae30236c62dcbe712 /Timeline/Configs | |
| parent | 3ddb38839ac07de4edf071faeb753b62acb0bed1 (diff) | |
| download | timeline-9a163719b76958374d1c27616393368e54e8b8a5.tar.gz timeline-9a163719b76958374d1c27616393368e54e8b8a5.tar.bz2 timeline-9a163719b76958374d1c27616393368e54e8b8a5.zip | |
...
Diffstat (limited to 'Timeline/Configs')
| -rw-r--r-- | Timeline/Configs/DatabaseConfig.cs | 2 | ||||
| -rw-r--r-- | Timeline/Configs/JwtConfig.cs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Timeline/Configs/DatabaseConfig.cs b/Timeline/Configs/DatabaseConfig.cs index e24ecdfb..c9309b08 100644 --- a/Timeline/Configs/DatabaseConfig.cs +++ b/Timeline/Configs/DatabaseConfig.cs @@ -2,6 +2,6 @@ namespace Timeline.Configs {
public class DatabaseConfig
{
- public string ConnectionString { get; set; }
+ public string ConnectionString { get; set; } = default!;
}
}
diff --git a/Timeline/Configs/JwtConfig.cs b/Timeline/Configs/JwtConfig.cs index 8c61d7bc..8a17825e 100644 --- a/Timeline/Configs/JwtConfig.cs +++ b/Timeline/Configs/JwtConfig.cs @@ -2,9 +2,9 @@ namespace Timeline.Configs {
public class JwtConfig
{
- public string Issuer { get; set; }
- public string Audience { get; set; }
- public string SigningKey { get; set; }
+ public string Issuer { get; set; } = default!;
+ public string Audience { get; set; } = default!;
+ public string SigningKey { get; set; } = default!;
/// <summary>
/// Set the default value of expire offset of jwt token.
|
