Skip to content

Conversation

@BorisDog
Copy link
Contributor

No description provided.

private readonly IReadOnlyDictionary<string, object> _extraOptions;

public MongocryptdFactory(IReadOnlyDictionary<string, object> extraOptions, bool? bypassQueryAnalysis)
public MongocryptdFactory(IReadOnlyDictionary<string, object> extraOptions, bool? bypassQueryAnalysis, IEventSubscriber eventSubscriber = null)
Copy link
Contributor Author

@BorisDog BorisDog May 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is for testing, were access to the events is needed.


var connectedDataBearingServers = _cluster.Description.Servers.Where(s => s.State == ServerState.Connected && s.IsDataBearing).ToList();

if (connectedDataBearingServers.Count == 0)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we don't necessary have selected server, switch to "best effort" validation. Compatible with spec.

@BorisDog BorisDog requested a review from JamesKovacs May 25, 2023 18:34
Copy link
Contributor

@JamesKovacs JamesKovacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BorisDog BorisDog merged commit 726ab47 into mongodb:master Jun 1, 2023
@BorisDog BorisDog deleted the csharp4504 branch June 1, 2023 21:43
dnickless pushed a commit to dnickless/mongo-csharp-driver that referenced this pull request Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants