Skip to content

EncryptedSqliteBlobCache.BeforeWriteToDiskFilter(byte[], IScheduler) method

Defined in

Type: EncryptedSqliteBlobCache Namespace: ReactiveMarbles.CacheDatabase.EncryptedSqlite3 Assembly: ReactiveMarbles.CacheDatabase.EncryptedSqlite3.dll

Applies to

netstandard2.0

protected virtual IObservable<byte[]> BeforeWriteToDiskFilter(byte[] data, IScheduler scheduler)

View source

Summary: This method is called immediately before writing any data to disk. Override this in encrypting data stores in order to encrypt the data.

Parameters

NameTypeDescription
databyte[]The byte data about to be written to disk.
scheduler[IScheduler](#The scheduler to use if an operation has to be deferred. If the operation can be done immediately, use Observable.Return and ignore this parameter.

Returns: IObservable -- A Future result representing the encrypted data.