@@ -147,6 +147,9 @@ static Library()
147
147
_mongocrypt_ctx_setopt_query_type = new Lazy < Delegates . mongocrypt_ctx_setopt_query_type > (
148
148
( ) => __loader . Value . GetFunction < Delegates . mongocrypt_ctx_setopt_query_type > (
149
149
( "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 ) ;
150
153
151
154
_mongocrypt_ctx_status = new Lazy < Delegates . mongocrypt_ctx_status > (
152
155
( ) => __loader . Value . GetFunction < Delegates . mongocrypt_ctx_status > ( ( "mongocrypt_ctx_status" ) ) , true ) ;
@@ -215,8 +218,6 @@ static Library()
215
218
( ) => __loader . Value . GetFunction < Delegates . mongocrypt_kms_ctx_usleep > ( ( "mongocrypt_kms_ctx_usleep" ) ) , true ) ;
216
219
_mongocrypt_kms_ctx_fail = new Lazy < Delegates . mongocrypt_kms_ctx_fail > (
217
220
( ) => __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 ) ;
220
221
}
221
222
222
223
/// <summary>
@@ -294,6 +295,7 @@ public static string Version
294
295
internal static Delegates . mongocrypt_ctx_setopt_algorithm_range mongocrypt_ctx_setopt_algorithm_range => _mongocrypt_ctx_setopt_algorithm_range . Value ;
295
296
internal static Delegates . mongocrypt_ctx_setopt_contention_factor mongocrypt_ctx_setopt_contention_factor => _mongocrypt_ctx_setopt_contention_factor . Value ;
296
297
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 ;
297
299
298
300
internal static Delegates . mongocrypt_ctx_state mongocrypt_ctx_state => _mongocrypt_ctx_state . Value ;
299
301
internal static Delegates . mongocrypt_ctx_mongo_op mongocrypt_ctx_mongo_op => _mongocrypt_ctx_mongo_op . Value ;
@@ -315,8 +317,6 @@ public static string Version
315
317
internal static Delegates . mongocrypt_kms_ctx_usleep mongocrypt_kms_ctx_usleep => _mongocrypt_kms_ctx_usleep . Value ;
316
318
internal static Delegates . mongocrypt_kms_ctx_fail mongocrypt_kms_ctx_fail => _mongocrypt_kms_ctx_fail . Value ;
317
319
318
- internal static Delegates . mongocrypt_setopt_retry_kms mongocrypt_setopt_retry_kms => _mongocrypt_setopt_retry_kms . Value ;
319
-
320
320
private static readonly Lazy < LibraryLoader > __loader = new Lazy < LibraryLoader > (
321
321
( ) => new LibraryLoader ( ) , true ) ;
322
322
private static readonly Lazy < Delegates . mongocrypt_version > _mongocrypt_version ;
@@ -656,6 +656,9 @@ public delegate bool
656
656
[ return : MarshalAs ( UnmanagedType . I1 ) ]
657
657
public delegate bool mongocrypt_ctx_setopt_query_type ( ContextSafeHandle ctx , [ MarshalAs ( UnmanagedType . LPStr ) ] string query_type , int length ) ;
658
658
659
+ [ return : MarshalAs ( UnmanagedType . I1 ) ]
660
+ public delegate bool mongocrypt_setopt_retry_kms ( MongoCryptSafeHandle handle , bool enable ) ;
661
+
659
662
public delegate CryptContext . StateCode mongocrypt_ctx_state ( ContextSafeHandle handle ) ;
660
663
661
664
[ return : MarshalAs ( UnmanagedType . I1 ) ]
@@ -702,9 +705,6 @@ public delegate bool
702
705
703
706
[ return : MarshalAs ( UnmanagedType . I1 ) ]
704
707
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 ) ;
708
708
}
709
709
}
710
710
}
0 commit comments