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