BThreadWrapperBase - Esempi
public sealed class ExportThread : BThreadWrapperBase
{
protected override async Task<bool> Elaboration()
{
await ExportAsync();
return true;
}
}
ExportThread thread = new ExportThread
{
Nome = "Export reports",
IsBackground = true,
Priority = ThreadPriority.BelowNormal
};
thread.StartThread();
Ogni istanza crea un singolo Thread: dopo la conclusione non può essere riavviata. Le eccezioni sono raccolte in ExceptionsList e attivano Failed; un risultato true attiva Completed.
