private void CleanupFunction(string SrcPath, string DstPath, int Deleted) { try { CleanupEvent?.Invoke(SrcPath, DstPath, Deleted); } catch {} }
public void OnCleanup(string SrcPath, string DstPath, int Deleted) { try { CleanupEvent?.Invoke(SrcPath, DstPath, Deleted); } catch (Exception ex) { throw ErrorHandling.Proceed(ex); } }