@@ -12,7 +12,7 @@ public static IApiClient Create(UriString repositoryUrl, IKeychain keychain, IAp
1212 var credentialStore = keychain . Connect ( repositoryUrl ) ;
1313 var hostAddress = HostAddress . Create ( repositoryUrl ) ;
1414
15- return new ApiClient ( repositoryUrl , keychain , credentialStore ,
15+ return new ApiClient ( repositoryUrl , keychain ,
1616 new GitHubClient ( appConfiguration . ProductHeader , credentialStore , hostAddress . ApiUri ) ) ;
1717 }
1818
@@ -21,7 +21,6 @@ public static IApiClient Create(UriString repositoryUrl, IKeychain keychain, IAp
2121 public UriString OriginalUrl { get ; }
2222
2323 private readonly IKeychain keychain ;
24- private readonly ICredentialStore credentialStore ;
2524 private readonly IGitHubClient githubClient ;
2625 private readonly ILoginManager loginManager ;
2726 private static readonly SemaphoreSlim sem = new SemaphoreSlim ( 1 ) ;
@@ -30,7 +29,7 @@ public static IApiClient Create(UriString repositoryUrl, IKeychain keychain, IAp
3029 string owner ;
3130 bool ? isEnterprise ;
3231
33- public ApiClient ( UriString hostUrl , IKeychain keychain , ICredentialStore credentialStore , IGitHubClient githubClient )
32+ public ApiClient ( UriString hostUrl , IKeychain keychain , IGitHubClient githubClient )
3433 {
3534 Guard . ArgumentNotNull ( hostUrl , nameof ( hostUrl ) ) ;
3635 Guard . ArgumentNotNull ( keychain , nameof ( keychain ) ) ;
@@ -39,7 +38,6 @@ public ApiClient(UriString hostUrl, IKeychain keychain, ICredentialStore credent
3938 HostAddress = HostAddress . Create ( hostUrl ) ;
4039 OriginalUrl = hostUrl ;
4140 this . keychain = keychain ;
42- this . credentialStore = credentialStore ;
4341 this . githubClient = githubClient ;
4442 loginManager = new LoginManager ( keychain , ApplicationInfo . ClientId , ApplicationInfo . ClientSecret ) ;
4543 }
0 commit comments