7
7
namespace Serilog . Ui . MongoDbProvider
8
8
{
9
9
/// <summary>
10
- /// SerilogUI option builder extensions .
10
+ /// MongoDB data provider specific extension methods for <see cref="SerilogUiOptionsBuilder"/> .
11
11
/// </summary>
12
12
public static class SerilogUiOptionBuilderExtensions
13
13
{
14
14
/// <summary>
15
- /// Adds MongoDB log data provider .
15
+ /// Configures the SerilogUi to connect to a MongoDB database .
16
16
/// </summary>
17
17
/// <param name="optionsBuilder">The options builder.</param>
18
18
/// <param name="connectionString">The connection string.</param>
19
- /// <param name="collectionName">Name of the collection.</param>
20
- /// <exception cref="ArgumentNullException">connectionString</exception>
21
- /// <exception cref="ArgumentNullException">collectionName</exception>
19
+ /// <param name="collectionName">Name of the collection name .</param>
20
+ /// <exception cref="ArgumentNullException">throw if connectionString is null </exception>
21
+ /// <exception cref="ArgumentNullException">throw is collectionName is null </exception>
22
22
public static void UseMongoDb (
23
23
this SerilogUiOptionsBuilder optionsBuilder ,
24
24
string connectionString ,
@@ -44,15 +44,15 @@ string collectionName
44
44
}
45
45
46
46
/// <summary>
47
- /// Adds MongoDB log data provider .
47
+ /// Configures the SerilogUi to connect to a MongoDB database .
48
48
/// </summary>
49
49
/// <param name="optionsBuilder">The options builder.</param>
50
- /// <param name="connectionString">The connection string without database name .</param>
51
- /// <param name="databaseName">Name of the database .</param>
52
- /// <param name="collectionName">Name of the collection.</param>
53
- /// <exception cref="ArgumentNullException">connectionString</exception>
54
- /// <exception cref="ArgumentNullException">databaseName</exception>
55
- /// <exception cref="ArgumentNullException">collectionName</exception>
50
+ /// <param name="connectionString">The connection string.</param>
51
+ /// <param name="databaseName">Name of the data table .</param>
52
+ /// <param name="collectionName">Name of the collection name .</param>
53
+ /// <exception cref="ArgumentNullException">throw if connectionString is null </exception>
54
+ /// <exception cref="ArgumentNullException">throw is databaseName is null </exception>
55
+ /// <exception cref="ArgumentNullException">throw is collectionName is null </exception>
56
56
public static void UseMongoDb (
57
57
this SerilogUiOptionsBuilder optionsBuilder ,
58
58
string connectionString ,
0 commit comments