Method EncryptFieldsAsync
- Namespace
- MongoDB.Driver.Core.WireProtocol
- Assembly
- MongoDB.Driver.Core.dll
EncryptFieldsAsync(string, byte[], CancellationToken)
Encrypts the fields asynchronously.
Task<byte[]> EncryptFieldsAsync(string databaseName, byte[] unencryptedCommandBytes, CancellationToken cancellationToken)Parameters
- databaseNamestring
- The database name. 
- unencryptedCommandBytesbyte[]
- The unencrypted command bytes. 
- cancellationTokenCancellationToken
- The cancellation token.