Skip to content

Commit cba9142

Browse files
author
rstam
committed
Minor fixes found while diffing 1.3.1 against 1.4.
1 parent 1f3c709 commit cba9142

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Bson/BsonUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
using System.IO;
1919
using System.Linq;
2020
using System.Text;
21+
using System.Text.RegularExpressions;
2122

2223
using MongoDB.Bson.IO;
2324
using MongoDB.Bson.Serialization;
24-
using System.Text.RegularExpressions;
2525

2626
namespace MongoDB.Bson
2727
{

Driver/Core/MongoServer.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public static int ServerCount
219219
/// <summary>
220220
/// Gets the arbiter instances.
221221
/// </summary>
222-
public MongoServerInstance[] Arbiters
222+
public virtual MongoServerInstance[] Arbiters
223223
{
224224
get
225225
{
@@ -233,7 +233,7 @@ public MongoServerInstance[] Arbiters
233233
/// <summary>
234234
/// Gets the build info of the server.
235235
/// </summary>
236-
public MongoServerBuildInfo BuildInfo
236+
public virtual MongoServerBuildInfo BuildInfo
237237
{
238238
get
239239
{
@@ -260,7 +260,7 @@ public MongoServerBuildInfo BuildInfo
260260
/// <summary>
261261
/// Gets the most recent connection attempt number.
262262
/// </summary>
263-
public int ConnectionAttempt
263+
public virtual int ConnectionAttempt
264264
{
265265
get { return _connectionAttempt; }
266266
}
@@ -310,7 +310,7 @@ public virtual MongoServerInstance[] Instances
310310
/// <summary>
311311
/// Gets the passive instances.
312312
/// </summary>
313-
public MongoServerInstance[] Passives
313+
public virtual MongoServerInstance[] Passives
314314
{
315315
get
316316
{
@@ -324,7 +324,7 @@ public MongoServerInstance[] Passives
324324
/// <summary>
325325
/// Gets the primary instance (null if there is no primary).
326326
/// </summary>
327-
public MongoServerInstance Primary
327+
public virtual MongoServerInstance Primary
328328
{
329329
get
330330
{
@@ -393,7 +393,7 @@ public virtual int RequestNestingLevel
393393
/// <summary>
394394
/// Gets the secondary instances.
395395
/// </summary>
396-
public MongoServerInstance[] Secondaries
396+
public virtual MongoServerInstance[] Secondaries
397397
{
398398
get
399399
{
@@ -1052,7 +1052,7 @@ public virtual void Shutdown(MongoCredentials adminCredentials)
10521052
/// <summary>
10531053
/// Verifies the state of the server (in the case of a replica set all members are contacted one at a time).
10541054
/// </summary>
1055-
public void VerifyState()
1055+
public virtual void VerifyState()
10561056
{
10571057
lock (_serverLock)
10581058
{

0 commit comments

Comments
 (0)