Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 4bd6d35

Browse files
committed
Make all the tasks and the platform classes public
1 parent 46191a3 commit 4bd6d35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+109
-110
lines changed

src/GitHub.Api/Application/ApiClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace GitHub.Unity
1313
{
14-
class ApiClient : IApiClient
14+
public class ApiClient : IApiClient
1515
{
1616
private static readonly ILogging logger = LogHelper.GetLogger<ApiClient>();
1717
private static readonly Regex httpStatusErrorRegex = new Regex("(?<=[a-z])([A-Z])", RegexOptions.Compiled);
@@ -505,7 +505,7 @@ protected ApiClientException(SerializationInfo info, StreamingContext context) :
505505
}
506506

507507
[Serializable]
508-
class TokenUsernameMismatchException : ApiClientException
508+
public class TokenUsernameMismatchException : ApiClientException
509509
{
510510
public string CachedUsername { get; }
511511
public string CurrentUsername { get; }
@@ -520,7 +520,7 @@ protected TokenUsernameMismatchException(SerializationInfo info, StreamingContex
520520
}
521521

522522
[Serializable]
523-
class KeychainEmptyException : ApiClientException
523+
public class KeychainEmptyException : ApiClientException
524524
{
525525
public KeychainEmptyException()
526526
{

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace GitHub.Unity
99
{
10-
class ApplicationManagerBase : IApplicationManager
10+
public class ApplicationManagerBase : IApplicationManager
1111
{
1212
protected static ILogging Logger { get; } = LogHelper.GetLogger<IApplicationManager>();
1313

src/GitHub.Api/Authentication/Keychain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public bool Equals(Connection other)
6767
}
6868
}
6969

70-
class Keychain : IKeychain
70+
public class Keychain : IKeychain
7171
{
7272
const string ConnectionFile = "connections.json";
7373

src/GitHub.Api/Authentication/KeychainAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace GitHub.Unity
22
{
3-
class KeychainAdapter : IKeychainAdapter
3+
public class KeychainAdapter : IKeychainAdapter
44
{
55
public ICredential Credential { get; private set; }
66

src/GitHub.Api/Authentication/LoginManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public enum LoginResultCodes
1616
/// <summary>
1717
/// Provides services for logging into a GitHub server.
1818
/// </summary>
19-
class LoginManager : ILoginManager
19+
public class LoginManager : ILoginManager
2020
{
2121
private readonly ILogging logger = LogHelper.GetLogger<LoginManager>();
2222

@@ -233,7 +233,7 @@ private string RetrieveUsername(string token, UriString host)
233233
}
234234
}
235235

236-
class LoginResultData
236+
public class LoginResultData
237237
{
238238
public LoginResultCodes Code;
239239
public string Message;

src/GitHub.Api/Git/FailureSeverity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
namespace GitHub.Unity
22
{
3-
enum FailureSeverity
3+
public enum FailureSeverity
44
{
55
Moderate,
66
Critical
77
};
8-
}
8+
}

src/GitHub.Api/Git/GitClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System;
33
using System.Collections.Generic;
44
using System.Threading;
5+
using GitHub.Unity.Git.Tasks;
56
using static GitHub.Unity.GitInstaller;
67

78
namespace GitHub.Unity

src/GitHub.Api/Git/GitConfig.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public interface IGitConfig
167167
void SetInt(string section, string key, int value);
168168
}
169169

170-
class GitConfig : IGitConfig
170+
public class GitConfig : IGitConfig
171171
{
172172
private readonly ConfigFileManager manager;
173173
private SectionParser sectionParser;
@@ -296,7 +296,7 @@ private void SetAndWrite(string section, string key, string value)
296296
manager.Save(sb.ToString());
297297
}
298298

299-
class Section : Dictionary<string, List<string>>
299+
public class Section : Dictionary<string, List<string>>
300300
{
301301
public Section(string name, string description = null)
302302
{
@@ -364,7 +364,7 @@ public override string ToString()
364364
public string Description { get; private set; }
365365
}
366366

367-
class SectionParser
367+
public class SectionParser
368368
{
369369
private static readonly Regex CommentPattern = new Regex(@"^[;#].*", RegexOptions.Compiled);
370370
private static readonly Regex SectionPattern = new Regex(@"^\[(.*)\]$", RegexOptions.Compiled);
@@ -463,7 +463,7 @@ private void EnsureFileBeginsWithSection()
463463
public Dictionary<string, Dictionary<string, Section>> GroupSections { get; private set; }
464464
}
465465

466-
class ConfigFileManager
466+
public class ConfigFileManager
467467
{
468468
private static readonly string[] emptyContents = new string[0];
469469

src/GitHub.Api/Git/GitCredentialManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
using System;
33
using System.Collections.Generic;
44
using System.Linq;
5+
using GitHub.Unity.Git.Tasks;
56

67
namespace GitHub.Unity
78
{
8-
class GitCredentialManager : ICredentialManager
9+
public class GitCredentialManager : ICredentialManager
910
{
1011
private static ILogging Logger { get; } = LogHelper.GetLogger<GitCredentialManager>();
1112

src/GitHub.Api/Git/GitObjectFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace GitHub.Unity
55
{
6-
class GitObjectFactory : IGitObjectFactory
6+
public class GitObjectFactory : IGitObjectFactory
77
{
88
private readonly IEnvironment environment;
99

0 commit comments

Comments
 (0)