Skip to content

Cancel operation #528

Answered by piksel
sebastianp-charactr asked this question in Q&A
Oct 16, 2020 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Yes! Most of the FastZip events have a ContinueRunning property in their EventArgs that you can set to false to stop it.

This is roughly how you set it up:

var fz = new FastZip(new FastZipEvents(){
    CompletedFile += (_, ea) => {
        ea.ContinueRunning = logicToDetermineIfShouldContinue()
    }
}));

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sebastianp-charactr
Comment options

@piksel
Comment options

@sebastianp-charactr
Comment options

Answer selected by sebastianp-charactr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants