C# Class LibGit2Sharp.RemoteCallbacks

Class to translate libgit2 callbacks into delegates exposed by LibGit2Sharp. Handles generating libgit2 git_remote_callbacks datastructure given a set of LibGit2Sharp delegates and handles propagating libgit2 callbacks into corresponding LibGit2Sharp exposed delegates.
Mostra file Open project: nulltoken/libgit2sharp Class Usage Examples

Private Methods

Method Description
GenerateCallbacks ( ) : GitRemoteCallbacks
GitCredentialHandler ( IntPtr &ptr, IntPtr cUrl, IntPtr usernameFromUrl, GitCredentialType credTypes, IntPtr payload ) : int
GitDownloadTransferProgressHandler ( LibGit2Sharp.Core.GitTransferProgress &progress, IntPtr payload ) : int

The delegate with the signature that matches the native git_transfer_progress_callback function's signature.

GitProgressHandler ( IntPtr str, int len, IntPtr data ) : int

Handler for libgit2 Progress callback. Converts values received from libgit2 callback to more suitable types and calls delegate provided by LibGit2Sharp consumer.

GitUpdateTipsHandler ( IntPtr str, LibGit2Sharp.Core.GitOid &oldId, LibGit2Sharp.Core.GitOid &newId, IntPtr data ) : int

Handler for libgit2 update_tips callback. Converts values received from libgit2 callback to more suitable types and calls delegate provided by LibGit2Sharp consumer.

RemoteCallbacks ( ProgressHandler onProgress = null, TransferProgressHandler onDownloadProgress = null, UpdateTipsHandler onUpdateTips = null, CredentialsHandler credentialsProvider = null ) : System