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

            OnCopyFileStart(e);
        }