Skip to content

Commit 8cd3b9f

Browse files
committed
CSHARP-2313: Fix Sandcastle doc comment warnings
1 parent 58a73d5 commit 8cd3b9f

File tree

8 files changed

+35
-10
lines changed

8 files changed

+35
-10
lines changed

Docs/Api/CSharpDriverDocs.shfbproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
33
<PropertyGroup>
4-
<SHFBROOT Condition=" '$(SHFBROOT)' == '' ">$(MSBuildThisFileDirectory)..\..\packages\EWSoftware.SHFB.2017.1.28.0\Tools\</SHFBROOT>
54
<ComponentPath>$(MSBuildThisFileDirectory)..\..\packages</ComponentPath>
65
<!-- The configuration and platform will be used to determine which
76
assemblies to include from solution and project documentation
@@ -54,6 +53,7 @@
5453
<NamespaceSummaryItem name="MongoDB.Driver.GeoJsonObjectModel.Serializers" isDocumented="True">GeoJson object model serializers.</NamespaceSummaryItem>
5554
<NamespaceSummaryItem name="MongoDB.Driver.Core.Authentication" isDocumented="True">The MongoDB.Driver.Core.Authentication namespace contains classes related to authentication.</NamespaceSummaryItem>
5655
<NamespaceSummaryItem name="MongoDB.Driver.Core.Authentication.Sspi" isDocumented="False" />
56+
<NamespaceSummaryItem name="MongoDB.Driver.Core.Authentication.Vendored" isDocumented="True">The MongoDB.Driver.Core.Authentication.Vendored contains types and classes vendored in to support authentication.</NamespaceSummaryItem>
5757
<NamespaceSummaryItem name="MongoDB.Driver.Core.Bindings" isDocumented="True">The MongoDB.Driver.Core.Bindings namespace contains classes related to bindings.</NamespaceSummaryItem>
5858
<NamespaceSummaryItem name="MongoDB.Driver.Core.Clusters" isDocumented="True">The MongoDB.Driver.Core.Clusters namespace contains classes related to clusters.</NamespaceSummaryItem>
5959
<NamespaceSummaryItem name="MongoDB.Driver.Core.Clusters.ServerSelectors" isDocumented="True">The MongoDB.Driver.Core.Clusters.ServerSelectors namespace contains classes related to server selectors.</NamespaceSummaryItem>
@@ -72,7 +72,7 @@
7272
<NamespaceSummaryItem name="MongoDB.Driver.Core.WireProtocol.Messages.Encoders.BinaryEncoders" isDocumented="True">The MongoDB.Driver.Core.WireProtoco.Messages.Encoders.BinaryEncoders namespace contains classes related to binary message encoders.</NamespaceSummaryItem>
7373
<NamespaceSummaryItem name="MongoDB.Driver.Core.WireProtocol.Messages.Encoders.JsonEncoders" isDocumented="True">The MongoDB.Driver.Core.WireProtoco.Messages.Encoders.JsonEncoders namespace contains classes related to JSON message encoders.</NamespaceSummaryItem>
7474
</NamespaceSummaries>
75-
<CopyrightText>Copyright &amp;#169%3b 2010-2015 MongoDB Inc.</CopyrightText>
75+
<CopyrightText>Copyright &amp;#169%3b 2010&amp;ndash%3bpresent MongoDB Inc.</CopyrightText>
7676
<FeedbackEMailAddress>dotnet-driver%40mongodb.com</FeedbackEMailAddress>
7777
<FeedbackEMailLinkText>MongoDB</FeedbackEMailLinkText>
7878
<FrameworkVersion>.NET Framework 4.5</FrameworkVersion>

src/MongoDB.Driver.Core/Core/Authentication/Vendored/HashAlgorithmName.cs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,27 @@ public override int GetHashCode()
142142
return _name == null ? 0 : _name.GetHashCode();
143143
}
144144

145-
/// <inheritdoc/>
145+
/// <summary>
146+
/// Implements the operator ==.
147+
/// </summary>
148+
/// <param name="left">The left operand.</param>
149+
/// <param name="right">The right operand.</param>
150+
/// <returns>
151+
/// The result of the == operator.
152+
/// </returns>
146153
public static bool operator ==(HashAlgorithmName left, HashAlgorithmName right)
147154
{
148155
return left.Equals(right);
149156
}
150157

151-
/// <inheritdoc/>
158+
/// <summary>
159+
/// Implements the operator !=.
160+
/// </summary>
161+
/// <param name="left">The left operand.</param>
162+
/// <param name="right">The right operand.</param>
163+
/// <returns>
164+
/// The result of the != operator.
165+
/// </returns>
152166
public static bool operator !=(HashAlgorithmName left, HashAlgorithmName right)
153167
{
154168
return !(left == right);

src/MongoDB.Driver.Core/Core/Bindings/CoreSession.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ public CoreSession(
5757
}
5858

5959
// public properties
60-
/// <inheritdoc />
60+
/// <summary>
61+
/// Gets the cluster.
62+
/// </summary>
63+
/// <value>
64+
/// The cluster.
65+
/// </value>
6166
public ICluster Cluster => _cluster;
6267

6368
/// <inheritdoc />

src/MongoDB.Driver.Core/Core/Operations/RetryableWriteCommandOperationBase.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,11 @@ public Task<BsonDocument> ExecuteAttemptAsync(RetryableWriteContext context, int
211211
/// <summary>
212212
/// Creates the command payloads.
213213
/// </summary>
214-
/// <returns>The command payloads.</returns>
214+
/// <param name="channel">The channel.</param>
215+
/// <param name="attempt">The attempt.</param>
216+
/// <returns>
217+
/// The command payloads.
218+
/// </returns>
215219
protected abstract IEnumerable<Type1CommandMessageSection> CreateCommandPayloads(IChannelHandle channel, int attempt);
216220

217221
// private methods

src/MongoDB.Driver.Core/Core/WireProtocol/Messages/CommandMessageSection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ public Type1CommandMessageSection(
239239
/// <summary>
240240
/// Represents a Type 1 CommandMessage section.
241241
/// </summary>
242+
/// <typeparam name="TDocument">The type of the document.</typeparam>
243+
/// <seealso cref="MongoDB.Driver.Core.WireProtocol.Messages.CommandMessageSection" />
242244
public class Type1CommandMessageSection<TDocument> : Type1CommandMessageSection where TDocument : class
243245
{
244246
// private fields

src/MongoDB.Driver/MongoClientSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ public UTF8Encoding WriteEncoding
578578
/// Gets a MongoClientSettings object intialized with values from a connection string.
579579
/// </summary>
580580
/// <param name="connectionString">The connection string.</param>
581-
/// <returns></returns>
581+
/// <returns>A MongoClientSettings.</returns>
582582
public static MongoClientSettings FromConnectionString(string connectionString)
583583
{
584584
return FromUrl(new MongoUrl(connectionString));

src/MongoDB.Driver/MongoIndexManagerBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ public virtual string CreateOne(
9393
/// <inheritdoc />
9494
public virtual async Task<string> CreateOneAsync(
9595
CreateIndexModel<TDocument> model,
96-
CreateOneIndexOptions createOneIndexOptions = null,
96+
CreateOneIndexOptions options = null,
9797
CancellationToken cancellationToken = default(CancellationToken))
9898
{
99-
var createManyIndexOptions = ToCreateManyIndexesOptions(createOneIndexOptions);
99+
var createManyIndexOptions = ToCreateManyIndexesOptions(options);
100100
var result = await CreateManyAsync(new[] { model }, createManyIndexOptions, cancellationToken).ConfigureAwait(false);
101101
return result.Single();
102102
}

src/MongoDB.Driver/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="AsyncUsageAnalyzers" version="1.0.0-alpha003" targetFramework="net45" developmentDependency="true" />
4-
<package id="EWSoftware.SHFB" version="2017.1.28.0" targetFramework="net45" />
4+
<package id="EWSoftware.SHFB" version="2018.5.29" targetFramework="net45" />
55
<package id="EWSoftware.SHFB.NETFramework" version="4.6.2" targetFramework="net45" />
66
</packages>

0 commit comments

Comments
 (0)