This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using System . Runtime . Serialization ;
23
34namespace 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}
Original file line number Diff line number Diff 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 ; }
You can’t perform that action at this time.
0 commit comments