Skip to content

Updated sample so that it has status of upload and download #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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