protected virtual bool OnStart(CancelWorkItemEventArgs <CopyFileWorkItem> e) { if (Start != null) { Start(this, e); } return(!e.Cancel); }
void processor_Start(object sender, CancelWorkItemEventArgs <TFileWorkItem> e) { if (!e.Cancel) { e.Cancel = ShouldSkip(e.WorkItem); } OnCopyFileStart(e); }