コード例 #1
0
        internal RemoteCallbacks(PushOptions pushOptions)
        {
            if (pushOptions == null)
            {
                return;
            }

            PushTransferProgress = pushOptions.OnPushTransferProgress;
            PackBuilderProgress = pushOptions.OnPackBuilderProgress;
            CredentialsProvider = pushOptions.CredentialsProvider;
            CertificateCheck = pushOptions.CertificateCheck;
            PushStatusError = pushOptions.OnPushStatusError;
            PrePushCallback = pushOptions.OnNegotiationCompletedBeforePush;
        }
コード例 #2
0
 /// <summary>
 /// Constructor to set up the native callback given managed delegate.
 /// </summary>
 /// <param name="onPushTransferProgress">The <see cref="TransferProgressHandler"/> delegate that the git_transfer_progress_callback will call.</param>
 internal PushTransferCallbacks(PushTransferProgressHandler onPushTransferProgress)
 {
     this.onPushTransferProgress = onPushTransferProgress;
 }