Skip to content

Conversation

amnguye
Copy link
Member

@amnguye amnguye commented Feb 17, 2021

No description provided.

context.ShouldOverwriteCallbackAsync = TransferContext.ForceOverwrite;
context.FileTransferred += (object sender, TransferEventArgs args) =>
{
Interlocked.Increment(ref transferSuccess);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to set a bool here instead of incrementing an int. But Interlocked just wouldn't let me do it through Interlocked.Exchange

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants