Make a method public

And rename them for good cause.
This commit is contained in:
Haacked
2015-04-21 17:26:06 -07:00
parent c107abffc4
commit e76c8b9f2d

View File

@@ -80,7 +80,7 @@ namespace Octokit
/// <param name="retryInvalidTwoFactorCode">If true, instead of completing when the two factor code supplied /// <param name="retryInvalidTwoFactorCode">If true, instead of completing when the two factor code supplied
/// is invalid, we go through the whole cycle again and prompt the two factor dialog.</param> /// is invalid, we go through the whole cycle again and prompt the two factor dialog.</param>
/// <returns></returns> /// <returns></returns>
public static IObservable<ApplicationAuthorization> CreateAndDeleteExistingApplicationAuthentication( public static IObservable<ApplicationAuthorization> CreateAndDeleteExistingApplicationAuthorization(
this IObservableAuthorizationsClient authorizationsClient, this IObservableAuthorizationsClient authorizationsClient,
string clientId, string clientId,
string clientSecret, string clientSecret,
@@ -88,7 +88,7 @@ namespace Octokit
Func<TwoFactorAuthorizationException, IObservable<TwoFactorChallengeResult>> twoFactorChallengeHandler, Func<TwoFactorAuthorizationException, IObservable<TwoFactorChallengeResult>> twoFactorChallengeHandler,
bool retryInvalidTwoFactorCode) bool retryInvalidTwoFactorCode)
{ {
return authorizationsClient.CreateAndDeleteExistingApplicationAuthentication( return authorizationsClient.CreateAndDeleteExistingApplicationAuthorization(
clientId, clientId,
clientSecret, clientSecret,
newAuthorization, newAuthorization,
@@ -97,7 +97,7 @@ namespace Octokit
retryInvalidTwoFactorCode); retryInvalidTwoFactorCode);
} }
static IObservable<ApplicationAuthorization> CreateAndDeleteExistingApplicationAuthentication( public static IObservable<ApplicationAuthorization> CreateAndDeleteExistingApplicationAuthorization(
this IObservableAuthorizationsClient authorizationsClient, this IObservableAuthorizationsClient authorizationsClient,
string clientId, string clientId,
string clientSecret, string clientSecret,
@@ -128,14 +128,14 @@ namespace Octokit
exception => twoFactorHandler(exception) exception => twoFactorHandler(exception)
.SelectMany(result => .SelectMany(result =>
result.ResendCodeRequested result.ResendCodeRequested
? authorizationsClient.CreateAndDeleteExistingApplicationAuthentication( ? authorizationsClient.CreateAndDeleteExistingApplicationAuthorization(
clientId, clientId,
clientSecret, clientSecret,
newAuthorization, newAuthorization,
twoFactorHandler, twoFactorHandler,
null, // twoFactorAuthenticationCode null, // twoFactorAuthenticationCode
retryInvalidTwoFactorCode) retryInvalidTwoFactorCode)
: authorizationsClient.CreateAndDeleteExistingApplicationAuthentication( : authorizationsClient.CreateAndDeleteExistingApplicationAuthorization(
clientId, clientId,
clientSecret, clientSecret,
newAuthorization, newAuthorization,