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

Commit 40e375a

Browse files
committed
Make naming consistent.
1 parent f38b93e commit 40e375a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GitHub.Exports.Reactive/Extensions/ConnectionManagerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static async Task<IModelService> GetModelService(
1313
ILocalRepositoryModel repository,
1414
IModelServiceFactory factory)
1515
{
16-
var connection = await cm.LookupConnection(repository);
16+
var connection = await cm.GetConnection(repository);
1717
return connection != null ? await factory.CreateAsync(connection) : null;
1818
}
1919
}

src/GitHub.Exports/Extensions/ConnectionManagerExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public static async Task<bool> IsLoggedIn(this IConnectionManager cm, HostAddres
2626
return connections.Any(x => x.HostAddress == address && x.ConnectionError == null);
2727
}
2828

29-
public static async Task<IConnection> GetLoggedInConnections(this IConnectionManager cm)
29+
public static async Task<IConnection> GetFirstLoggedInConnection(this IConnectionManager cm)
3030
{
3131
Guard.ArgumentNotNull(cm, nameof(cm));
3232

3333
var connections = await cm.GetLoadedConnections();
3434
return connections.FirstOrDefault(x => x.IsLoggedIn);
3535
}
3636

37-
public static Task<IConnection> LookupConnection(this IConnectionManager cm, ILocalRepositoryModel repository)
37+
public static Task<IConnection> GetConnection(this IConnectionManager cm, ILocalRepositoryModel repository)
3838
{
3939
if (repository?.CloneUrl != null)
4040
{

0 commit comments

Comments
 (0)