BayesFilterSaveDatabaseAsync Method (Stream, Stream)
async/await version of SaveDatabase(Stream, Stream).

Namespace: MailBee.AntiSpam
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public Task SaveDatabaseAsync(
	Stream spamStream,
	Stream nonSpamStream
)

Parameters

spamStream
Type: System.IOStream
An output stream containing spam samples.
nonSpamStream
Type: System.IOStream
An output stream containing non-spam samples.

Return Value

Type: Task
A task that represents the asynchronous operation.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionspamStream or nonSpamStream is a null reference (Nothing in Visual Basic).
MailBeeIOExceptionAn I/O error occurred.
See Also