diff options
author | crupest <crupest@outlook.com> | 2020-08-21 23:32:53 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-21 23:32:53 +0800 |
commit | e429b7e0c0425b507b26f95ff3176f9a01f73423 (patch) | |
tree | fdd85906c46832a3a3a32cd06b24e76167f383d4 /Timeline/Services | |
parent | ed324cdcec6d70cc9f93b57b2e3a5a35d3366048 (diff) | |
download | timeline-e429b7e0c0425b507b26f95ff3176f9a01f73423.tar.gz timeline-e429b7e0c0425b507b26f95ff3176f9a01f73423.tar.bz2 timeline-e429b7e0c0425b507b26f95ff3176f9a01f73423.zip |
...
Diffstat (limited to 'Timeline/Services')
-rw-r--r-- | Timeline/Services/ETagGenerator.cs | 2 | ||||
-rw-r--r-- | Timeline/Services/TimelineService.cs | 2 | ||||
-rw-r--r-- | Timeline/Services/UserService.cs | 5 | ||||
-rw-r--r-- | Timeline/Services/UserTokenException.cs | 4 |
4 files changed, 7 insertions, 6 deletions
diff --git a/Timeline/Services/ETagGenerator.cs b/Timeline/Services/ETagGenerator.cs index d328ea20..4493e903 100644 --- a/Timeline/Services/ETagGenerator.cs +++ b/Timeline/Services/ETagGenerator.cs @@ -33,7 +33,7 @@ namespace Timeline.Services return Task.Run(() => Convert.ToBase64String(_sha1.ComputeHash(source)));
}
- private bool _disposed = false; // To detect redundant calls
+ private bool _disposed; // To detect redundant calls
public void Dispose()
{
diff --git a/Timeline/Services/TimelineService.cs b/Timeline/Services/TimelineService.cs index 0070fe3e..01f7f5fd 100644 --- a/Timeline/Services/TimelineService.cs +++ b/Timeline/Services/TimelineService.cs @@ -260,6 +260,7 @@ namespace Timeline.Services /// Thrown when timeline with name <paramref name="timelineName"/> does not exist.
/// If it is a personal timeline, then inner exception is <see cref="UserNotExistException"/>.
/// </exception>
+ /// <remarks>
/// This method does not check whether visitor is administrator.
/// Return false if user with user id does not exist.
/// </remarks>
@@ -277,6 +278,7 @@ namespace Timeline.Services /// Thrown when timeline with name <paramref name="timelineName"/> does not exist.
/// If it is a personal timeline, then inner exception is <see cref="UserNotExistException"/>.
/// </exception>
+ /// <remarks>
/// This method does not check whether visitor is administrator.
/// Return false if user with visitor id does not exist.
/// </remarks>
diff --git a/Timeline/Services/UserService.cs b/Timeline/Services/UserService.cs index d9b3da26..821bc33d 100644 --- a/Timeline/Services/UserService.cs +++ b/Timeline/Services/UserService.cs @@ -65,11 +65,10 @@ namespace Timeline.Services /// Create a user with given info.
/// </summary>
/// <param name="info">The info of new user.</param>
- /// <param name="password">The password, can't be null or empty.</param>
/// <returns>The the new user.</returns>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="info"/>is null.</exception>
/// <exception cref="ArgumentException">Thrown when some fields in <paramref name="info"/> is bad.</exception>
- /// <exception cref="ConflictException">Thrown when a user with given username already exists.</exception>
+ /// <exception cref="EntityAlreadyExistException">Thrown when a user with given username already exists.</exception>
/// <remarks>
/// <see cref="User.Username"/> must not be null and must be a valid username.
/// <see cref="User.Password"/> must not be null or empty.
@@ -110,7 +109,7 @@ namespace Timeline.Services /// <exception cref="ArgumentNullException">Thrown when <paramref name="username"/> is null.</exception>
/// <exception cref="ArgumentException">Thrown when <paramref name="username"/> is of bad format or some fields in <paramref name="info"/> is bad.</exception>
/// <exception cref="UserNotExistException">Thrown when user with given id does not exist.</exception>
- /// <exception cref="ConflictException">Thrown when user with the newusername already exist.</exception>
+ /// <exception cref="EntityAlreadyExistException">Thrown when user with the newusername already exist.</exception>
/// <remarks>
/// Only <see cref="User.Administrator"/>, <see cref="User.Password"/> and <see cref="User.Nickname"/> will be used.
/// If null, then not change.
diff --git a/Timeline/Services/UserTokenException.cs b/Timeline/Services/UserTokenException.cs index ed0bae1a..d25fabb3 100644 --- a/Timeline/Services/UserTokenException.cs +++ b/Timeline/Services/UserTokenException.cs @@ -31,9 +31,9 @@ namespace Timeline.Services System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
- public DateTime ExpireTime { get; private set; } = default;
+ public DateTime ExpireTime { get; private set; }
- public DateTime VerifyTime { get; private set; } = default;
+ public DateTime VerifyTime { get; private set; }
}
[Serializable]
|