Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 6a8f551

Browse files
committed
Fix CA errors.
1 parent 7f5a1cc commit 6a8f551

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/GitHub.Api/IncorrectScopesException.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
using System;
2+
using System.Runtime.Serialization;
23

34
namespace GitHub.Api
45
{
56
/// <summary>
67
/// Thrown when the login for a user does not have the required scopes.
78
/// </summary>
9+
[Serializable]
810
public class IncorrectScopesException : Exception
911
{
1012
public IncorrectScopesException()
@@ -16,5 +18,15 @@ public IncorrectScopesException(string message)
1618
: base(message)
1719
{
1820
}
21+
22+
public IncorrectScopesException(string message, Exception innerException)
23+
: base(message, innerException)
24+
{
25+
}
26+
27+
protected IncorrectScopesException(SerializationInfo info, StreamingContext context)
28+
: base(info, context)
29+
{
30+
}
1931
}
2032
}

src/GitHub.App/Api/ApiClient.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ public partial class ApiClient : IApiClient
2323
static readonly ILogger log = LogManager.ForContext<ApiClient>();
2424

2525
readonly IObservableGitHubClient gitHubClient;
26-
readonly static Lazy<string> lazyNote = new Lazy<string>(() => ProductName + " on " + GetMachineNameSafe());
27-
readonly static Lazy<string> lazyFingerprint = new Lazy<string>(GetFingerprint);
2826

2927
string ClientId { get; set; }
3028
string ClientSecret { get; set; }

0 commit comments

Comments
 (0)