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
databaseName
stringThe database name.
unencryptedCommandBytes
byte[]The unencrypted command bytes.
cancellationToken
CancellationTokenThe cancellation token.