LibGit2Sharp.RemoteCallbacks.GitDownloadTransferProgressHandler C# (CSharp) 메소드

GitDownloadTransferProgressHandler() 개인적인 메소드

The delegate with the signature that matches the native git_transfer_progress_callback function's signature.
private GitDownloadTransferProgressHandler ( LibGit2Sharp.Core.GitTransferProgress &progress, IntPtr payload ) : int
progress LibGit2Sharp.Core.GitTransferProgress structure containing progress information.
payload System.IntPtr Payload data.
리턴 int
        private int GitDownloadTransferProgressHandler(ref GitTransferProgress progress, IntPtr payload)
        {
            bool shouldContinue = true;

            if (DownloadTransferProgress != null)
            {
                shouldContinue = DownloadTransferProgress(new TransferProgress(progress));
            }

            return Proxy.ConvertResultToCancelFlag(shouldContinue);
        }