Documentation modifications
This commit is contained in:
@@ -20,6 +20,13 @@ public class UserRepository : MongoRepository<User>, IUserRepository
|
||||
{
|
||||
private readonly ApiSettings _apiSettings;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserRepository"/> class, passing the MongoDB database to the base constructor and storing the API settings required by the repository.
|
||||
/// </summary>
|
||||
/// <param name="apiSettings">The <see cref="IOptions{ApiSettings}"/> containing the API settings used by the repository.</param>
|
||||
/// <param name="database">The <see cref="IMongoDatabase"/> supplied to the base constructor for MongoDB data access.</param>
|
||||
/// <exception cref="ArgumentNullException">Thrown when <paramref name="apiSettings"/> is <see langword="null"/>.</exception>
|
||||
/// <!-- aidoc:v1 sig=4f76e46 body=d2b18a3 -->
|
||||
public UserRepository(IOptions<ApiSettings> apiSettings, IMongoDatabase database) : base(database)
|
||||
{
|
||||
if (apiSettings == null) throw new ArgumentNullException(nameof(apiSettings));
|
||||
|
||||
Reference in New Issue
Block a user