8000 Add public proxy APIs · darkthread/libgit2sharp@75b4432 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75b4432

Browse files
committed
Add public proxy APIs
1 parent e13df56 commit 75b4432

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

LibGit2Sharp/FetchOptionsBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ internal FetchOptionsBase()
4848
/// Completed operating on the current repository.
4949
/// </summary>
5050
public RepositoryOperationCompleted RepositoryOperationCompleted { get; set; }
51+
52+
public ProxyOptions ProxyOptions { get; set; }
5153
}
5254
}

LibGit2Sharp/ProxyOptions.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using LibGit2Sharp.Handlers;
2+
3+
namespace LibGit2Sharp
4+
{
5+
public class ProxyOptions
6+
{
7+
public ProxyType ProxyType { get; set; }
8+
9+
public string Url { get; set; }
10+
11+
public CredentialsHandler CredentialsProvider { get; set; }
12+
13+
public CertificateCheckHandler CertificateCheck { get; set; }
14+
}
15+
}

LibGit2Sharp/ProxyType.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace LibGit2Sharp
2+
{
3+
public enum ProxyType
4+
{
5+
None,
6+
Auto,
7+
Specified
8+
}
9+
}

0 commit comments

Comments
 (0)
0