Skip to content

Commit c322e46

Browse files
committed
Corrected ordering
1 parent 955be75 commit c322e46

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/MongoDB.Driver.Encryption/Library.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ static Library()
147147
_mongocrypt_ctx_setopt_query_type = new Lazy<Delegates.mongocrypt_ctx_setopt_query_type>(
148148
() => __loader.Value.GetFunction<Delegates.mongocrypt_ctx_setopt_query_type>(
149149
("mongocrypt_ctx_setopt_query_type")), true);
150+
_mongocrypt_setopt_retry_kms = new Lazy<Delegates.mongocrypt_setopt_retry_kms>(
151+
() => __loader.Value.GetFunction<Delegates.mongocrypt_setopt_retry_kms>(
152+
("mongocrypt_setopt_retry_kms")), true);
150153

151154
_mongocrypt_ctx_status = new Lazy<Delegates.mongocrypt_ctx_status>(
152155
() => __loader.Value.GetFunction<Delegates.mongocrypt_ctx_status>(("mongocrypt_ctx_status")), true);
@@ -215,8 +218,6 @@ static Library()
215218
() => __loader.Value.GetFunction<Delegates.mongocrypt_kms_ctx_usleep>(("mongocrypt_kms_ctx_usleep")), true);
216219
_mongocrypt_kms_ctx_fail = new Lazy<Delegates.mongocrypt_kms_ctx_fail>(
217220
() => __loader.Value.GetFunction<Delegates.mongocrypt_kms_ctx_fail>(("mongocrypt_kms_ctx_fail")), true);
218-
_mongocrypt_setopt_retry_kms = new Lazy<Delegates.mongocrypt_setopt_retry_kms>(
219-
() => __loader.Value.GetFunction<Delegates.mongocrypt_setopt_retry_kms>(("mongocrypt_setopt_retry_kms")), true);
220221
}
221222

222223
/// <summary>
@@ -294,6 +295,7 @@ public static string Version
294295
internal static Delegates.mongocrypt_ctx_setopt_algorithm_range mongocrypt_ctx_setopt_algorithm_range => _mongocrypt_ctx_setopt_algorithm_range.Value;
295296
internal static Delegates.mongocrypt_ctx_setopt_contention_factor mongocrypt_ctx_setopt_contention_factor => _mongocrypt_ctx_setopt_contention_factor.Value;
296297
internal static Delegates.mongocrypt_ctx_setopt_query_type mongocrypt_ctx_setopt_query_type => _mongocrypt_ctx_setopt_query_type.Value;
298+
internal static Delegates.mongocrypt_setopt_retry_kms mongocrypt_setopt_retry_kms => _mongocrypt_setopt_retry_kms.Value;
297299

298300
internal static Delegates.mongocrypt_ctx_state mongocrypt_ctx_state => _mongocrypt_ctx_state.Value;
299301
internal static Delegates.mongocrypt_ctx_mongo_op mongocrypt_ctx_mongo_op => _mongocrypt_ctx_mongo_op.Value;
@@ -315,8 +317,6 @@ public static string Version
315317
internal static Delegates.mongocrypt_kms_ctx_usleep mongocrypt_kms_ctx_usleep => _mongocrypt_kms_ctx_usleep.Value;
316318
internal static Delegates.mongocrypt_kms_ctx_fail mongocrypt_kms_ctx_fail => _mongocrypt_kms_ctx_fail.Value;
317319

318-
internal static Delegates.mongocrypt_setopt_retry_kms mongocrypt_setopt_retry_kms => _mongocrypt_setopt_retry_kms.Value;
319-
320320
private static readonly Lazy<LibraryLoader> __loader = new Lazy<LibraryLoader>(
321321
() => new LibraryLoader(), true);
322322
private static readonly Lazy<Delegates.mongocrypt_version> _mongocrypt_version;
@@ -656,6 +656,9 @@ public delegate bool
656656
[return: MarshalAs(UnmanagedType.I1)]
657657
public delegate bool mongocrypt_ctx_setopt_query_type(ContextSafeHandle ctx, [MarshalAs(UnmanagedType.LPStr)] string query_type, int length);
658658

659+
[return: MarshalAs(UnmanagedType.I1)]
660+
public delegate bool mongocrypt_setopt_retry_kms(MongoCryptSafeHandle handle, bool enable);
661+
659662
public delegate CryptContext.StateCode mongocrypt_ctx_state(ContextSafeHandle handle);
660663

661664
[return: MarshalAs(UnmanagedType.I1)]
@@ -702,9 +705,6 @@ public delegate bool
702705

703706
[return: MarshalAs(UnmanagedType.I1)]
704707
public delegate bool mongocrypt_kms_ctx_fail(IntPtr handle);
705-
706-
[return: MarshalAs(UnmanagedType.I1)]
707-
public delegate bool mongocrypt_setopt_retry_kms(MongoCryptSafeHandle handle, bool enable);
708708
}
709709
}
710710
}

0 commit comments

Comments
 (0)