BayesFilterOnLockedDatabase Property
Gets or sets the application-supplied method which will be executed if MailBee founds that spam or non-spam database file is locked when it needs to perform I/O operation with it.

Namespace: MailBee.AntiSpam
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public LockedDatabaseDelegate OnLockedDatabase { get; set; }

Property Value

Type: LockedDatabaseDelegate
The reference to the delegate to be called in case of spam or non-spam database being locked, or a null reference (Nothing in Visual Basic) if the delegate is not set.
Remarks

In most cases, you won't need to write custom handler of locked spam databases and set this property. By default, when MailBee finds out that spam or non-spam database is locked, it sleeps the thread for 10 millisecs, then tries again (up to 100 times). This logic is satisfactory for most applications. But if your case is very special (for instance, you deal with a very slow disk storage), you may need to supply your own custom mechanism for this.

See LockedDatabaseDelegate topic to learn more how to implement to write the delegate handler if you need to.

See Also