@@ -563,7 +563,7 @@ private static KmsKeyId CreateKmsKeyId(string kmsName, string endPoint = null, I
563
563
return new KmsKeyId ( datakeyOptionsDocument . ToBson ( ) , keyAltNameBuffers ) ;
564
564
}
565
565
566
- private CryptOptions CreateOptions ( )
566
+ private static CryptOptions CreateOptions ( )
567
567
{
568
568
return new CryptOptions (
569
569
new [ ]
@@ -573,7 +573,7 @@ private CryptOptions CreateOptions()
573
573
} ) ;
574
574
}
575
575
576
- private ( Binary binarySent , BsonDocument document ) ProcessContextToCompletion ( CryptContext context , bool isKmsDecrypt = true )
576
+ private static ( Binary binarySent , BsonDocument document ) ProcessContextToCompletion ( CryptContext context , bool isKmsDecrypt = true )
577
577
{
578
578
BsonDocument document = null ;
579
579
Binary binary = null ;
@@ -591,7 +591,7 @@ private CryptOptions CreateOptions()
591
591
/// Returns (stateProcessed, binaryOperationProduced, bsonOperationProduced)
592
592
/// </summary>
593
593
/// <exception cref="NotImplementedException"></exception>
594
- private ( CryptContext . StateCode stateProcessed , Binary binaryProduced , BsonDocument bsonOperationProduced ) ProcessState ( CryptContext context , bool isKmsDecrypt = true )
594
+ private static ( CryptContext . StateCode stateProcessed , Binary binaryProduced , BsonDocument bsonOperationProduced ) ProcessState ( CryptContext context , bool isKmsDecrypt = true )
595
595
{
596
596
_output . WriteLine ( "\n ----------------------------------\n State:" + context . State ) ;
597
597
switch ( context . State )
@@ -678,7 +678,7 @@ private CryptOptions CreateOptions()
678
678
throw new NotImplementedException ( ) ;
679
679
}
680
680
681
- private CryptContext StartExplicitEncryptionContextWithKeyId ( CryptClient client , byte [ ] keyId , string encryptionAlgorithm , byte [ ] message )
681
+ private static CryptContext StartExplicitEncryptionContextWithKeyId ( CryptClient client , byte [ ] keyId , string encryptionAlgorithm , byte [ ] message )
682
682
{
683
683
return client . StartExplicitEncryptionContext ( keyId , keyAltName : null , queryType : null , contentionFactor : null , encryptionAlgorithm , message , rangeOptions : null ) ;
684
684
}
@@ -732,7 +732,9 @@ static BsonDocument ReadJsonTestFile(string file)
732
732
}
733
733
734
734
// Work around C# drivers and C driver have different extended json support
735
+ #pragma warning disable CA1307
735
736
text = text . Replace ( "\" $numberLong\" " , "$numberLong" ) ;
737
+ #pragma warning restore CA1307
736
738
737
739
return BsonUtil . FromJSON ( text ) ;
738
740
}
0 commit comments