AmazonGlacierSample.Program.OnProgress C# (CSharp) Method

OnProgress() static private method

static private OnProgress ( object sender, Amazon.Runtime.StreamTransferProgressArgs args ) : void
sender object
args Amazon.Runtime.StreamTransferProgressArgs
return void
        static void OnProgress(object sender, StreamTransferProgressArgs args)
        {
            if (args.PercentDone != currentPercentage)
            {
                currentPercentage = args.PercentDone;
                Console.WriteLine("Downloaded {0}%", args.PercentDone);
            }
        }