Repository navigation
Cancel operation #528
Answered
by
piksel
sebastianp-charactr
asked this question in
Q&A
Cancel operation
#528
|
Is there any way to stop ongoing zip operation while using FastZip? |
Answered by
piksel
Oct 16, 2020
Replies: 1 comment 3 replies
|
Yes! Most of the FastZip events have a This is roughly how you set it up: var fz = new FastZip(new FastZipEvents(){
CompletedFile += (_, ea) => {
ea.ContinueRunning = logicToDetermineIfShouldContinue()
}
})); |
3 replies
Answer selected by
sebastianp-charactr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes! Most of the FastZip events have a
ContinueRunningproperty in their EventArgs that you can set tofalseto stop it.This is roughly how you set it up: